changeset 6949:a49dfbd3235c

RT-36920: [Ensemble8] NullPointerException from VirtualFlow.layoutChildren when running Gesture Event sample
author jgiles
date Thu, 01 May 2014 08:31:17 +1200
parents 6d2f01663378
children a419baadd1be
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/VirtualFlow.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/VirtualFlow.java	Wed Apr 30 12:10:02 2014 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/VirtualFlow.java	Thu May 01 08:31:17 2014 +1200
@@ -950,7 +950,9 @@
                 // updateIndex(-1) works for TableView, but breaks ListView.
                 // For now, the TableView just does not use the dirtyCells API
 //                cell.updateIndex(-1);
-                cell.requestLayout();
+                if (cell != null) {
+                    cell.requestLayout();
+                }
                 dirtyCells.clear(index);
             }