From d4b4d28c9f40452ab24a427d8bca6e41036fc0aa Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 21 Dec 2025 08:53:27 -0600 Subject: [PATCH] Fix null error log in Data source provider --- .../core/file/fullDatafile/V2/FullDataSourceProviderV2.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/V2/FullDataSourceProviderV2.java b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/V2/FullDataSourceProviderV2.java index e26bff94b..813d1649e 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/V2/FullDataSourceProviderV2.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/V2/FullDataSourceProviderV2.java @@ -242,6 +242,11 @@ public class FullDataSourceProviderV2 implements IDebugRenderable, AutoCloseable catch (Exception e) { String message = e.getMessage(); + if (message == null) + { + message = "NULL"; + } + if (CORRUPT_DATA_ERRORS_LOGGED.add(message)) { LOGGER.warn("Unexpected error getting: [" + DhSectionPos.toString(pos) + "], this error message will only be logged once, error: [" + message + "].", e);