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

Observed repeated NPEs printed during shutdown.

java.lang.NullPointerException
	at hudson.model.listeners.RunListener.all(RunListener.java:216)
	at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:196)
	…
上级 1f29f0d0
......@@ -204,6 +204,9 @@ public abstract class RunListener<R extends Run> implements ExtensionPoint {
* Fires the {@link #onFinalized(Run)} event.
*/
public static void fireFinalized(Run r) {
if (Jenkins.getInstance() == null) {
return;
}
for (RunListener l : all()) {
if(l.targetType.isInstance(r))
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册