Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Fix npe
Dieser Commit ist enthalten in:
Ursprung
2c9affa0e3
Commit
4aefc23bb8
@ -289,7 +289,7 @@ public final class ComponentConverter {
|
|||||||
|
|
||||||
private static void removeComponentType(final JsonObject object) {
|
private static void removeComponentType(final JsonObject object) {
|
||||||
final JsonElement type = object.remove("type");
|
final JsonElement type = object.remove("type");
|
||||||
if (!type.isJsonPrimitive()) {
|
if (type == null || !type.isJsonPrimitive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren