Skip to content

Commit

Permalink
fix: ignore non json object metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Dec 30, 2024
1 parent 78bd733 commit d06da3f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public Metadata readFromTree(JsonElement element) {
Metadata.Builder builder = Metadata.builder();
for (Map.Entry<String, JsonElement> entry : object.entrySet()) {
String partName = entry.getKey();
if (!entry.getValue().isJsonObject()) continue;
JsonObject partObject = entry.getValue().getAsJsonObject();

MetadataPartCodec<?> codec = CODECS.get(partName);
Expand Down

0 comments on commit d06da3f

Please sign in to comment.