提交 40574632 编写于 作者: J Jesse Glick

[JENKINS-16845] Refinement to hotfix: if build field has already been cleared...

[JENKINS-16845] Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE.
上级 6e91651a
...@@ -343,6 +343,9 @@ public class Fingerprinter extends Recorder implements Serializable, DependencyD ...@@ -343,6 +343,9 @@ public class Fingerprinter extends Recorder implements Serializable, DependencyD
} }
public void onLoad() { public void onLoad() {
if (build == null) {
return;
}
if (build.getParent() == null) { if (build.getParent() == null) {
logger.warning("JENKINS-16845: broken FingerprintAction record"); logger.warning("JENKINS-16845: broken FingerprintAction record");
build = null; build = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册