Skip to content

Commit

Permalink
Fixed deserialization issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcelhanon committed Nov 18, 2024
1 parent 3bf60e4 commit bf1df56
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ public IDictionary Deserialize(ref MessagePackReader reader, MessagePackSerializ

var extensionDictionary = new Dictionary<string, object>();

int count = reader.ReadMapHeader();

if (count == 0)
{
return extensionDictionary;
}

IList<string> missingExtensionEntries;

if (GeneratedArtifactStaticDependencies.EntityExtensionRegistrar.AggregateExtensionEntityNamesByType.TryGetValue(_containingType, out var aggregateExtensionByName))
Expand All @@ -97,6 +90,8 @@ public IDictionary Deserialize(ref MessagePackReader reader, MessagePackSerializ
missingExtensionEntries = Array.Empty<string>();
}

int count = reader.ReadMapHeader();

for (int i = 0; i < count; i++)
{
string extensionCollectionName = reader.ReadString();
Expand Down

0 comments on commit bf1df56

Please sign in to comment.