Skip to content

Commit 4e54a7e

Browse files
authored
fix(java): avoid panic if deps from pom in it dir are not found (#7245)
1 parent 805592d commit 4e54a7e

File tree

1 file changed

+1
-1
lines changed
  • pkg/fanal/analyzer/language/java/pom

1 file changed

+1
-1
lines changed

pkg/fanal/analyzer/language/java/pom/pom.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (a pomAnalyzer) Analyze(_ context.Context, input analyzer.AnalysisInput) (*
3232
}
3333

3434
// Mark integration test pom files for `maven-invoker-plugin` as Dev to skip them by default.
35-
if isIntegrationTestDir(filePath) {
35+
if isIntegrationTestDir(filePath) && res != nil {
3636
for i := range res.Applications {
3737
for j := range res.Applications[i].Packages {
3838
res.Applications[i].Packages[j].Dev = true

0 commit comments

Comments
 (0)