changeset 5634:a562ec0058ee

RT-34028 TableView selection sometimes gives null items in change events Reviewed-by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Tue, 05 Nov 2013 11:10:48 +0100
parents 15f5f2930c25
children 1c3b39a00d7e
files modules/controls/src/main/java/javafx/scene/control/TableView.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/TableView.java	Tue Nov 05 12:30:39 2013 +0400
+++ b/modules/controls/src/main/java/javafx/scene/control/TableView.java	Tue Nov 05 11:10:48 2013 +0100
@@ -648,9 +648,8 @@
             // be notified of all changes (even when the item is the same, such
             // as in the case of a new empty items list replacing an old (but
             // equal) empty items list
-            @Override public void set(ObservableList<S> newValue) {
-                super.set(newValue);
-
+            
+            @Override protected void invalidated() {
                 ObservableList<S> oldItems = oldItemsRef == null ? null : oldItemsRef.get();
 
                 // FIXME temporary fix for RT-15793. This will need to be