This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch dev/2.0.0/ISIS-1762-j8-utils
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/dev/2.0.0/ISIS-1762-j8-utils 
by this push:
     new caa4fbb  ISIS-1762 fix inverted logic on null safe stream of arrays
caa4fbb is described below

commit caa4fbb91d78127451c45e01e4077a119433d26d
Author: Andi Huber <ahu...@apache.org>
AuthorDate: Thu Nov 9 17:57:53 2017 +0100

    ISIS-1762 fix inverted logic on null safe stream of arrays
---
 .../src/main/java/org/apache/isis/core/commons/lang/NullSafe.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/metamodel/src/main/java/org/apache/isis/core/commons/lang/NullSafe.java 
b/core/metamodel/src/main/java/org/apache/isis/core/commons/lang/NullSafe.java
index 985b498..c86063e 100644
--- 
a/core/metamodel/src/main/java/org/apache/isis/core/commons/lang/NullSafe.java
+++ 
b/core/metamodel/src/main/java/org/apache/isis/core/commons/lang/NullSafe.java
@@ -44,7 +44,7 @@ public class NullSafe {
         * the specified {@code array}, or the empty stream if array is {@code 
null}.
         */
        public static <T> Stream<T> stream(T[] array) {
-               return array!=null ? Stream.empty() : Stream.of(array);
+               return array!=null ? Stream.of(array) : Stream.empty();
        }
 
        /**

-- 
To stop receiving notification emails like this one, please contact
['"commits@isis.apache.org" <commits@isis.apache.org>'].

Reply via email to