You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2019/09/01 15:42:18 UTC

[netbeans] 02/02: Do not create a Path with null item just because LiveEngine.getID was called.

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

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit 18203cea4e5776d25893de172929c9b64603cab0
Author: Jesse Glick <jg...@apache.org>
AuthorDate: Tue Aug 27 15:00:41 2019 -0400

    Do not create a Path with null item just because LiveEngine.getID was called.
---
 harness/o.n.insane/src/org/netbeans/insane/impl/LiveEngine.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/harness/o.n.insane/src/org/netbeans/insane/impl/LiveEngine.java b/harness/o.n.insane/src/org/netbeans/insane/impl/LiveEngine.java
index 3614c3d..917099f 100644
--- a/harness/o.n.insane/src/org/netbeans/insane/impl/LiveEngine.java
+++ b/harness/o.n.insane/src/org/netbeans/insane/impl/LiveEngine.java
@@ -130,6 +130,8 @@ public class LiveEngine implements ObjectMap, Visitor {
         Object oo = objects.get(to);
         if (oo instanceof Object[]) {
             return Arrays.asList((Object[])oo).iterator();
+        } else if (oo == null) {
+            return Collections.emptyIterator();
         } else {
             return Collections.singleton(oo).iterator();
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists