changeset 4962:0b6186f39a8f

RT-32697 NPE in hashCode method of SimpleSetProperty
author Martin Sladecek <martin.sladecek@oracle.com>
date Wed, 04 Sep 2013 15:45:20 +0200
parents dcce9cea3af1
children cfdb41b7b640
files modules/base/src/main/java/javafx/beans/property/ReadOnlySetProperty.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/base/src/main/java/javafx/beans/property/ReadOnlySetProperty.java	Wed Sep 04 15:07:25 2013 +0200
+++ b/modules/base/src/main/java/javafx/beans/property/ReadOnlySetProperty.java	Wed Sep 04 15:45:20 2013 +0200
@@ -133,7 +133,7 @@
     @Override
     public int hashCode() {
         int h = 0;
-        for (E e : get()) {
+        for (E e : this) {
             if (e != null)
                 h += e.hashCode();
         }