diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java index 7e632fdc..f64bb9a9 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java @@ -37,8 +37,13 @@ public class TraceRepository { } catch (IllegalArgumentException e) { return null; } - Region region = RegionSystem.INSTANCE.getRegion(UUID.fromString(reader.readUTF())).orElse(null); - if (region == null) return null; + Region region; + try { + region = RegionSystem.INSTANCE.getRegion(UUID.fromString(reader.readUTF())).orElse(null); + if (region == null) return null; + } catch (IllegalArgumentException e) { + return null; + } Date date = (Date) reader.readObject(); int serialisationVersion = reader.readInt(); if (serialisationVersion != SERIALISATION_VERSION) {