Squashed some NPE
This commit is contained in:
@@ -112,6 +112,7 @@ public class PolygonTool extends SelectionTool implements PolygonTransformationL
|
||||
Set<Integer> selectedEntities = sandbox.getSelector().getSelectedItems();
|
||||
for(int entity: selectedEntities) {
|
||||
BasicFollower follower = followersUIMediator.getFollower(entity);
|
||||
if (follower == null) continue;
|
||||
follower.update();
|
||||
follower.removeSubFollower(PolygonFollower.class);
|
||||
PolygonFollower meshFollower = new PolygonFollower(entity);
|
||||
|
||||
@@ -112,6 +112,7 @@ public class TagsPanelMediator extends Mediator<TagsPanel> {
|
||||
while (iterator.hasNext()) {
|
||||
entity = iterator.next();
|
||||
mainItemComponent = SandboxComponentRetriever.get(entity, MainItemComponent.class);
|
||||
if (mainItemComponent == null) continue;
|
||||
toRetain.clear();
|
||||
for (String tag : mainItemComponent.tags)
|
||||
toRetain.add(tag);
|
||||
|
||||
Reference in New Issue
Block a user