From 7988882f91ae098a5a947f7b2831ecedd2b21e75 Mon Sep 17 00:00:00 2001 From: Joshua Castle <26531652+Kas-tle@users.noreply.github.com> Date: Wed, 28 Dec 2022 02:16:52 -0800 Subject: [PATCH] Null check --- .../geyser/registry/mappings/MappingsConfigReader.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }