forked from External/mage
Fixed NPE errors on empty sourceId in mage reference object;
This commit is contained in:
parent
cb8d4dc340
commit
ff3df35467
5 changed files with 32 additions and 25 deletions
|
|
@ -90,8 +90,10 @@ public class FixedTarget implements TargetPointer {
|
|||
}
|
||||
}
|
||||
|
||||
List<UUID> list = new ArrayList<>(1);
|
||||
list.add(targetId);
|
||||
List<UUID> list = new ArrayList<>();
|
||||
if (targetId != null) {
|
||||
list.add(targetId);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue