Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
Add NullCheck (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmuelder authored and tkutz committed Jan 25, 2017
1 parent 86e6b62 commit 066a7c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ protected void scheduleTimeEvent(ScheduleEventRunnable eventRunnable) {

public synchronized void unscheduleTimeEvent(String eventName) {
ScheduledFuture<?> future = futures.remove(eventName);
future.cancel(false);
if(future != null)
future.cancel(false);
runnables.remove(eventName);
}

Expand Down

0 comments on commit 066a7c8

Please sign in to comment.