提交 313ccb96 编写于 作者: J Jesse Glick

Merge pull request #1722 from jglick/removeExecutor-NPE

Null safety for removeExecutor
......@@ -998,7 +998,9 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
if (!isAlive()) // TODO except from interrupt/doYank this is called while the executor still isActive(), so how could !this.isAlive()?
{
AbstractCIBase ciBase = Jenkins.getInstance();
ciBase.removeComputer(Computer.this);
if (ciBase != null) {
ciBase.removeComputer(Computer.this);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册