sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1727213 - /sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java
Date Wed, 27 Jan 2016 23:15:19 GMT
Author: desruisseaux
Date: Wed Jan 27 23:15:18 2016
New Revision: 1727213

URL: http://svn.apache.org/viewvc?rev=1727213&view=rev
Log:
Fix a NullPointerException (found during execution of Geotk tests).

Modified:
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java?rev=1727213&r1=1727212&r2=1727213&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/util/LazySet.java
[UTF-8] Wed Jan 27 23:15:18 2016
@@ -96,7 +96,7 @@ public class LazySet<E> extends SetOfUnk
      * @param iterator The iterator to use for filling this set.
      */
     public LazySet(final Iterator<? extends E> iterator) {
-        Objects.requireNonNull(sourceIterator);
+        Objects.requireNonNull(iterator);
         sourceIterator = iterator;
         source = null;
         createCache();



Mime
View raw message