Skip to content

Commit

Permalink
fix(java): avoid panic if deps from pom in it dir are not found (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen authored Jul 29, 2024
1 parent 805592d commit 4e54a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/analyzer/language/java/pom/pom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e54a7e

Please sign in to comment.