diff --git a/BauSystem_Main/src/de/steamwar/bausystem/tracer/TraceManager.java b/BauSystem_Main/src/de/steamwar/bausystem/tracer/TraceManager.java index 84f9184..f2e9ed7 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/tracer/TraceManager.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/tracer/TraceManager.java @@ -74,7 +74,9 @@ public class TraceManager { } int frameID = trace.getFrameID(); ShowManager.traceRemove(id); - frameMap.get(frameID).remove((Integer) id); + if (frameMap.containsKey(frameID)) { + frameMap.get(frameID).remove((Integer) id); + } testRemoveFrame(frameID); } }