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 public static synchronized
void shutdown() { void shutdown() {
eventDispatchExecutor.shutdownNow(); if (eventDispatchExecutor != null) {
eventDispatchExecutor = null; eventDispatchExecutor.shutdownNow();
eventDispatchExecutor = null;
}
} }
} }