From 52828c8b4e057aa441bb8217570a3fb75ef1fb39 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 29 Sep 2025 15:52:13 +0200 Subject: [PATCH] Hotfix TraceRepository --- .../bausystem/features/tracer/TraceRepository.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) {