diff --git a/tools/mpq-viewer/src/main/java/com/riiablo/tool/mpqviewer/MpqViewer.java b/tools/mpq-viewer/src/main/java/com/riiablo/tool/mpqviewer/MpqViewer.java index 27e7e42e..35d1e210 100644 --- a/tools/mpq-viewer/src/main/java/com/riiablo/tool/mpqviewer/MpqViewer.java +++ b/tools/mpq-viewer/src/main/java/com/riiablo/tool/mpqviewer/MpqViewer.java @@ -2125,6 +2125,7 @@ public class MpqViewer extends Tool { @Override public void dispose() { super.dispose(); + if (ref.get() == null) return; log.debug("Unloading {}", ref.get()); assets.unload(ref.get()); log.debug("Unloading dt1 blocks {}", blocksRef);