Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 22:40:18 +01:00
Null check
Dieser Commit ist enthalten in:
Ursprung
e3dcb6d65a
Commit
7988882f91
@ -122,7 +122,8 @@ public class MappingsConfigReader {
|
|||||||
JsonNode mappingsRoot = getMappingsRoot(file);
|
JsonNode mappingsRoot = getMappingsRoot(file);
|
||||||
|
|
||||||
int formatVersion = getFormatVersion(mappingsRoot, file);
|
int formatVersion = getFormatVersion(mappingsRoot, file);
|
||||||
if (formatVersion < 0) {
|
|
||||||
|
if (formatVersion < 0 || mappingsRoot == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +134,8 @@ public class MappingsConfigReader {
|
|||||||
JsonNode mappingsRoot = getMappingsRoot(file);
|
JsonNode mappingsRoot = getMappingsRoot(file);
|
||||||
|
|
||||||
int formatVersion = getFormatVersion(mappingsRoot, file);
|
int formatVersion = getFormatVersion(mappingsRoot, file);
|
||||||
if (formatVersion < 0) {
|
|
||||||
|
if (formatVersion < 0 || mappingsRoot == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren