提交 13c20605 编写于 作者: K kohsuke

fixed NPE.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2344 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cd674e69
......@@ -60,13 +60,16 @@ public class MavenFingerprinter extends MavenReporter {
if(updated) {
build.execute(new BuildCallable<Void,IOException>() {
// record is transient, so needs to make a copy first
private final Map<String, String> r = record;
public Void call(MavenBuild build) throws IOException, InterruptedException {
// update the build action with new fingerprints
FingerprintAction a = build.getAction(FingerprintAction.class);
List<Action> actions = build.getActions();
if(a!=null)
actions.remove(a);
actions.add(new FingerprintAction(build,record));
actions.add(new FingerprintAction(build,r));
return null;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册