Null pointer fix

This commit is contained in:
nathan 2017-12-01 22:48:09 +01:00
parent 142be61a9c
commit 80f497f954

View File

@ -31,7 +31,9 @@ class EventDispatch {
*/
public static synchronized
void shutdown() {
eventDispatchExecutor.shutdownNow();
eventDispatchExecutor = null;
if (eventDispatchExecutor != null) {
eventDispatchExecutor.shutdownNow();
eventDispatchExecutor = null;
}
}
}