You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There are some dependencies that generate a NullPointerException on CPEAnalyzer.
These happen on dependencies with a date pattern for a version, but not always.
Version of dependency-check used
6.1.4 maven plugin.
These work for 6.1.1
Log file
Snipit. I will update the ticket with a failing example
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (0 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Jar Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (0 seconds)
[WARNING] An unexpected error occurred during analysis of '/Users/sellersj/Downloads/maven-repository/com/google/errorprone/javac-shaded/9-dev-r4023-3/javac-shaded-9-dev-r4023-3.jar' (CPE Analyzer): null
[ERROR]
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1449)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.lambda$verifyEntry$6(CPEAnalyzer.java:647)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1577)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:516)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.verifyEntry(CPEAnalyzer.java:648)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.determineCPE(CPEAnalyzer.java:293)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.analyzeDependency(CPEAnalyzer.java:766)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[WARNING] An unexpected error occurred during analysis of '/Users/sellersj/Downloads/maven-repository/org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.1/geronimo-activation_1.0.2_spec-1.1.jar' (CPE Analyzer): null
[ERROR]
[WARNING] An unexpected error occurred during analysis of '/Users/sellersj/Downloads/maven-repository/com/novell/ldap/jldap/2009-10-07/jldap-2009-10-07.jar' (CPE Analyzer): null
[ERROR]
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1449)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.lambda$verifyEntry$6(CPEAnalyzer.java:647)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1577)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:516)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.verifyEntry(CPEAnalyzer.java:648)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.determineCPE(CPEAnalyzer.java:293)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.analyzeDependency(CPEAnalyzer.java:766)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1449)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.lambda$verifyEntry$6(CPEAnalyzer.java:647)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1577)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:516)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.verifyEntry(CPEAnalyzer.java:648)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.determineCPE(CPEAnalyzer.java:293)
at org.owasp.dependencycheck.analyzer.CPEAnalyzer.analyzeDependency(CPEAnalyzer.java:766)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
To Reproduce
Steps to reproduce the behavior:
Run the script with the sample project or just use the dependencies in your own.
There are more dependencies that I found issues with, but not all of them are in maven central so I tried to make it easy to test a base case.
Expected behavior
That the exception will not happen and it will continue to work like version 6.1.1
Additional context
These are all old versions of dependencies.
The text was updated successfully, but these errors were encountered:
Describe the bug
There are some dependencies that generate a NullPointerException on CPEAnalyzer.
These happen on dependencies with a date pattern for a version, but not always.
Version of dependency-check used
6.1.4 maven plugin.
These work for 6.1.1
Log file
Snipit. I will update the ticket with a failing example
To Reproduce
Steps to reproduce the behavior:
Run the script with the sample project or just use the dependencies in your own.
There are more dependencies that I found issues with, but not all of them are in maven central so I tried to make it easy to test a base case.
Expected behavior
That the exception will not happen and it will continue to work like version 6.1.1
Additional context
These are all old versions of dependencies.
The text was updated successfully, but these errors were encountered: