Fix list type checking in json to tag conversion

This commit is contained in:
Nassim Jahnke 2024-10-10 21:05:19 +02:00
parent 82356ca318
commit 6664159f43
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -181,7 +181,7 @@ index 8ef3051..9af7730 100644
private static Tag getListType(final Tag current, final Tag tag) {
if (current == null) return tag;
- if (current != tag) return Tag.END; //Placeholder for mixed lists
+ if (current != tag) return null; //Placeholder for mixed lists
+ if (tag == null || current.getClass() != tag.getClass()) return null; //Placeholder for mixed lists
return current;
}