提交 a163996a 编写于 作者: K kohsuke

Fixed a possible NPE in computing dependency changes.

java.lang.NullPointerException
	at hudson.model.AbstractBuild$DependencyChange.<init>(AbstractBuild.java:1036)
	at hudson.model.AbstractBuild.getDependencyChanges(AbstractBuild.java:1002)
	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:280)
	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:271)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:538)
	at hudson.model.Run.run(Run.java:1303)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:137)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35368 71c3de6d-444a-0410-be80-ed276b4c234a
上级 46fd462d
......@@ -359,7 +359,8 @@ public class Fingerprinter extends Recorder implements Serializable {
if(bp==null) continue; // outside Hudson
if(bp.is(build)) continue; // we are the owner
AbstractProject job = bp.getJob();
if(job!=null && job.getParent()==build.getParent())
if (job==null) continue; // no longer exists
if (job.getParent()==build.getParent())
continue; // we are the parent of the build owner, that is almost like we are the owner
Integer existing = r.get(job);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册