Branch: refs/heads/master
Home: https://github.com/jenkinsci/maven-plugin
Commit: 8fba37abd6003f6460814fe6508f337f047d1c7c
https://github.com/jenkinsci/maven-plugin/commit/8fba37abd6003f6460814fe6508f337f047d1c7c
Author: Bernhard Haumacher <[email protected]>
Date: 2023-10-02 (Mon, 02 Oct 2023)
Changed paths:
M src/main/java/hudson/maven/AbstractMavenBuilder.java
Log Message:
-----------
Fixed NPE during reporting (#318)
* Fixed potential NullPointerException.
There is evidence that the key sets of the sourceProxies and reporters
maps get inconsistent. I observe randomly failing builds that report the
following error:
```
FATAL: Cannot invoke "java.util.List.iterator()" because the return
value of "java.util.Map.get(Object)" is null
java.lang.NullPointerException: Cannot invoke
"java.util.List.iterator()" because the return value of
"java.util.Map.get(Object)" is null
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101)
at
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:883)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
at hudson.model.Run.execute(Run.java:1895)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
```
* Fixed indentation.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/maven-plugin/push/refs/heads/master/f3c5ec-8fba37%40github.com.