fix(java): avoid panic if deps from pom in it dir are not found (#7245)

This commit is contained in:
DmitriyLewen
2024-07-30 00:47:50 +06:00
committed by GitHub
parent 805592d7ec
commit 4e54a7e84c

View File

@@ -32,7 +32,7 @@ func (a pomAnalyzer) Analyze(_ context.Context, input analyzer.AnalysisInput) (*
}
// Mark integration test pom files for `maven-invoker-plugin` as Dev to skip them by default.
if isIntegrationTestDir(filePath) {
if isIntegrationTestDir(filePath) && res != nil {
for i := range res.Applications {
for j := range res.Applications[i].Packages {
res.Applications[i].Packages[j].Dev = true