mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 11:35:18 +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) {
|
||||
final JsonElement type = object.remove("type");
|
||||
if (!type.isJsonPrimitive()) {
|
||||
if (type == null || !type.isJsonPrimitive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user