From e27f7c833217749eb3e59bcd52e824dcc9a02bd5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 8 Jan 2023 10:24:55 -0500 Subject: [PATCH] Fixed #8131 --- core/src/mindustry/editor/MapObjectivesCanvas.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/editor/MapObjectivesCanvas.java b/core/src/mindustry/editor/MapObjectivesCanvas.java index dcf81a6afe..bfa19367a6 100644 --- a/core/src/mindustry/editor/MapObjectivesCanvas.java +++ b/core/src/mindustry/editor/MapObjectivesCanvas.java @@ -203,6 +203,8 @@ public class MapObjectivesCanvas extends WidgetGroup{ for(var parent : tile.obj.parents){ var parentTile = tiles.find(t -> t.obj == parent); + if(parentTile == null) continue; + Connector conFrom = parentTile.conChildren, conTo = tile.conParent;