changeset 5238:dfe5f213aab4

RT-31206: [TableView] custom skin replacements fails, when columns or data is added.
author jgiles
date Wed, 02 Oct 2013 15:00:51 +1300
parents 2f48570d437f
children 5f4b2dc52be7
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableViewSkinBase.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/TableViewSkinBase.java	Wed Oct 02 12:29:14 2013 +1300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableViewSkinBase.java	Wed Oct 02 15:00:51 2013 +1300
@@ -296,7 +296,9 @@
             // using 'needCellsReconfigured' here rather than 'needCellsRebuilt'
             // as otherwise performance suffers massively (RT-27831)
             needCellsReconfigured = true;
-            getSkinnable().requestLayout();
+            if (getSkinnable() != null) {
+                getSkinnable().requestLayout();
+            }
         }
     };