Skip to content

Commit

Permalink
Fix for empty online source mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosavljevic committed Mar 21, 2024
1 parent 0a1e0b1 commit b985bea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public override bool Execute()
foreach (var entry in oldSourceMappingPatterns)
{
// Skip sources with zero package patterns
if (entry.Value != null)
if (entry.Value?.Count > 0)
{
pkgSrcMappingClearElement.AddAfterSelf(GetPackageMappingsElementForSource(entry.Key, entry.Value));
}
Expand Down

0 comments on commit b985bea

Please sign in to comment.