mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Null check
This commit is contained in:
parent
e3dcb6d65a
commit
7988882f91
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue