Skip to content

Commit

Permalink
Fix decoding of container data attributes when the contained type doe…
Browse files Browse the repository at this point in the history
…s not have a definition
  • Loading branch information
tsyd committed Aug 21, 2024
1 parent 203dc36 commit dae395e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,15 @@ private List<Attribute<?>> decodeAttributes(CodecContext codecContext, List<RawA

AttributeDefinition<?, ?> attributeDefinition = dictionary.getAttributeDefinition(nextType);

int numComplete = attributeDefinition.getAttributeCodec().decode(codecContext, attributeStack);
if (attributeDefinition != null) {
int numComplete = attributeDefinition.getAttributeCodec().decode(codecContext, attributeStack);

for (int i = 0; i < numComplete; i++) {
attributes.add(attributeStack.removeFirst());
}
for (int i = 0; i < numComplete; i++) {
attributes.add(attributeStack.removeFirst());
}

continue;
continue;
}
}

attributes.add(attributeStack.removeFirst());
Expand Down

0 comments on commit dae395e

Please sign in to comment.