Skip to content

Commit

Permalink
fix NPE for the async thread
Browse files Browse the repository at this point in the history
  • Loading branch information
mlongobardo-gituname committed Mar 1, 2024
1 parent f8439ae commit 9e4471d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stars.Data/Model/Metadata/Bka/BkaMetadataExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override bool CanProcess(IResource route, IDestination destination)
IAsset topZipAsset = GetTopZipAsset(item);
return (topZipAsset != null);
}
else
else if (metadataAssets != null)
{
BkaMetadata[] metadata = ReadMetadata(metadataAssets).GetAwaiter().GetResult();
return metadata != null;
Expand All @@ -67,6 +67,7 @@ public override bool CanProcess(IResource route, IDestination destination)
{
return false;
}
return false;
}

protected override async Task<StacNode> ExtractMetadata(IItem item, string suffix)
Expand Down

0 comments on commit 9e4471d

Please sign in to comment.