Check for jsonnull in component conversion

Closes #3745
This commit is contained in:
Nassim Jahnke 2024-03-17 16:23:27 +01:00
parent 7b0c2fb51a
commit b07cf03dc1
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}