Fix null error log in Data source provider

This commit is contained in:
James Seibel
2025-12-21 08:53:27 -06:00
parent b8e653b5f7
commit d4b4d28c9f
@@ -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);