changeset 3782:3d88225dbe0d

RT-30715 NPE when MeshView is added to scene with empty TriangleMesh created
author Yao Wang <yao.w.wang@oracle.com>
date Fri, 31 May 2013 19:11:19 -0700
parents beec262373cc
children cc621195ec3c
files javafx-ui-common/src/javafx/scene/shape/TriangleMesh.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/scene/shape/TriangleMesh.java	Fri May 31 17:21:34 2013 -0700
+++ b/javafx-ui-common/src/javafx/scene/shape/TriangleMesh.java	Fri May 31 19:11:19 2013 -0700
@@ -487,12 +487,12 @@
     private class Listener<T extends ObservableArray<T>> implements ArrayChangeListener<T>, FloatArraySyncer, IntegerArraySyncer {
         
         protected final T array;
-        protected boolean dirty;
+        protected boolean dirty = true;
         /**
          * Array was replaced
          * @return true if array was replaced; false otherwise
          */
-        protected boolean dirtyInFull;
+        protected boolean dirtyInFull = true;
         protected int dirtyRangeFrom;
         protected int dirtyRangeLength;