diff --git a/src/main/java/me/cortex/voxy/client/importers/WorldImporter.java b/src/main/java/me/cortex/voxy/client/importers/WorldImporter.java index 67c63d3e..f21040fd 100644 --- a/src/main/java/me/cortex/voxy/client/importers/WorldImporter.java +++ b/src/main/java/me/cortex/voxy/client/importers/WorldImporter.java @@ -112,7 +112,13 @@ public class WorldImporter { public void shutdown() { this.isRunning = false; - try {this.worker.join();} catch (InterruptedException e) {throw new RuntimeException(e);} + if (this.worker != null) { + try { + this.worker.join(); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + } this.threadPool.shutdown(); }