From b07cf03dc1c04df5ed1a016ec49f835767ea4e18 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sun, 17 Mar 2024 16:23:27 +0100 Subject: [PATCH] Check for jsonnull in component conversion Closes #3745 --- .../main/java/com/viaversion/viaversion/util/ComponentUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/util/ComponentUtil.java b/common/src/main/java/com/viaversion/viaversion/util/ComponentUtil.java index cc5292e46..edab243a1 100644 --- a/common/src/main/java/com/viaversion/viaversion/util/ComponentUtil.java +++ b/common/src/main/java/com/viaversion/viaversion/util/ComponentUtil.java @@ -63,7 +63,7 @@ public final class ComponentUtil { } public static @Nullable Tag jsonToTag(@Nullable final JsonElement element) { - if (element == null) { + if (element == null || element.isJsonNull()) { return null; }