Skip to content
Permalink
Browse files
NPE Fix in StreamWatchdog
Could be the cause of JENKINS-21036
  • Loading branch information
rsandell committed Jan 22, 2014
1 parent f3e6b39 commit f588210771216b9be4a7a3871c374bcff3bb504d
Showing with 3 additions and 1 deletion.
  1. +3 −1 ...ts/src/main/java/com/sonyericsson/hudson/plugins/gerrit/gerritevents/watchdog/StreamWatchdog.java
@@ -128,6 +128,8 @@ public synchronized void signal() {
* Shuts down the watchdog timer. A new StreamWatchdog will need to be created to continue watching it.
*/
public void shutdown() {
timer.cancel();
if (timer != null) {
timer.cancel();
}
}
}

0 comments on commit f588210

Please sign in to comment.