diff --git a/core/src/main/java/org/geysermc/geyser/registry/mappings/MappingsConfigReader.java b/core/src/main/java/org/geysermc/geyser/registry/mappings/MappingsConfigReader.java index f1cde1759..d4e8b0d93 100644 --- a/core/src/main/java/org/geysermc/geyser/registry/mappings/MappingsConfigReader.java +++ b/core/src/main/java/org/geysermc/geyser/registry/mappings/MappingsConfigReader.java @@ -122,7 +122,8 @@ public class MappingsConfigReader { JsonNode mappingsRoot = getMappingsRoot(file); int formatVersion = getFormatVersion(mappingsRoot, file); - if (formatVersion < 0) { + + if (formatVersion < 0 || mappingsRoot == null) { return; } @@ -133,7 +134,8 @@ public class MappingsConfigReader { JsonNode mappingsRoot = getMappingsRoot(file); int formatVersion = getFormatVersion(mappingsRoot, file); - if (formatVersion < 0) { + + if (formatVersion < 0 || mappingsRoot == null) { return; }