Null check

This commit is contained in:
Joshua Castle 2022-12-28 02:16:52 -08:00
parent e3dcb6d65a
commit 7988882f91
No known key found for this signature in database
GPG key ID: F674F38216C35D5D

View file

@ -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;
}