Skip to content

Commit

Permalink
Do not create a Path with null item just because LiveEngine.getID was…
Browse files Browse the repository at this point in the history
… called.
  • Loading branch information
jglick authored and lkishalmi committed Sep 1, 2019
1 parent 1d6c743 commit 18203ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ private void addIncommingRef (Object to, Object from, Field f) {
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();
}
Expand Down

0 comments on commit 18203ce

Please sign in to comment.