Skip to content

Commit e864d21

Browse files
committed
Properly handle components with 0 layer indices
1 parent 960f2bc commit e864d21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Microsoft.ComponentDetection.Orchestrator/Services/GraphTranslation/DefaultGraphTranslationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static bool IsExclusivelyFromBaseImage(DetectedComponent component, Dict
105105
return false;
106106
}
107107

108-
if (layerIndices == null)
108+
if (layerIndices == null || !layerIndices.Any())
109109
{
110110
// No layer indices for this container detail - keep the component.
111111
return false;

0 commit comments

Comments
 (0)