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);