From 875eb2d5bd01d30acdf7466d6c4d19677b76c525 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 3 Oct 2019 12:03:59 +0200 Subject: [PATCH] Fix check session --- src/de/steamwar/schematicsystem/check/CheckSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/schematicsystem/check/CheckSession.java b/src/de/steamwar/schematicsystem/check/CheckSession.java index 8cfa079..8c7f8e6 100644 --- a/src/de/steamwar/schematicsystem/check/CheckSession.java +++ b/src/de/steamwar/schematicsystem/check/CheckSession.java @@ -43,6 +43,8 @@ public class CheckSession { } public static CheckSession getCheckSession() { + if(checkSessions.isEmpty()) + return null; return checkSessions.iterator().next(); }