changeset 6907:410ba5840447

RT-36886: [VirtualFlow] NPE in VirtualFlow.layoutChildren with filtered list view. Reviewed-by: ddhill Contributed-by: Jonathan Giles
author kcr
date Mon, 28 Apr 2014 13:32:22 -0700
parents db8fb9db7d60
children 38c1ea45f8be
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	Mon Apr 28 15:21:18 2014 +1200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/VirtualFlow.java	Mon Apr 28 13:32:22 2014 -0700
@@ -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);
             }