From 519c69498bebb1936dffd66d17b281eacc8ad324 Mon Sep 17 00:00:00 2001 From: Cedric Date: Sun, 8 Sep 2024 16:31:14 +0200 Subject: [PATCH] fix: NPE --- src/main/java/com/troblecodings/signals/guis/GuiSignalBox.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/troblecodings/signals/guis/GuiSignalBox.java b/src/main/java/com/troblecodings/signals/guis/GuiSignalBox.java index 0cd808c08..c1e86ffaa 100644 --- a/src/main/java/com/troblecodings/signals/guis/GuiSignalBox.java +++ b/src/main/java/com/troblecodings/signals/guis/GuiSignalBox.java @@ -175,6 +175,8 @@ public void updateSignals(final Iterable updated) { private void updateTrainNumber(final List points) { points.forEach(point -> { final UISignalBoxTile tile = allTiles.get(point); + if (tile == null) + return; tile.setNode(tile.getNode()); }); lowerEntity.update();