Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-24 15:20:25 +01:00
Null check
Dieser Commit ist enthalten in:
Ursprung
e3dcb6d65a
Commit
7988882f91
@ -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;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren