From df72a08f9922ff5319af95e2d75fa89541b58824 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 19 Jul 2020 14:42:55 +0200 Subject: [PATCH] Fix NullPointerException in delete() --- .../src/de/steamwar/bausystem/tracer/trace/TNTFrame.java | 1 - 1 file changed, 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/tracer/trace/TNTFrame.java b/BauSystem_Main/src/de/steamwar/bausystem/tracer/trace/TNTFrame.java index ca9364b..11301aa 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/tracer/trace/TNTFrame.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/tracer/trace/TNTFrame.java @@ -50,7 +50,6 @@ public class TNTFrame { private void delete(TNTPrimed tntPrimed, boolean delete) { if (aliveTNT == null) return; TNTTrace tntTrace = aliveTNT.get(tntPrimed); - tntTrace.addLocation(tntPrimed.getLocation()); if (delete) { aliveTNT.remove(tntPrimed); }