Fix NPE in RedstoneSign

This commit is contained in:
Sn0wStorm 2016-05-31 22:10:15 +02:00
parent 6c6c9c4b59
commit 1b6ed7432a

View File

@ -250,8 +250,12 @@ public class RedstoneSign extends DSign {
unpower();
enableTask.cancel();
disableTask.cancel();
if (enableTask != null) {
enableTask.cancel();
}
if (disableTask != null) {
disableTask.cancel();
}
active = false;
}