mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 05:26:23 +01:00
Fix npe
This commit is contained in:
parent
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user