diff --git a/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs b/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs index 8a02fa6b6f..c42e32a7ef 100644 --- a/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs +++ b/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs @@ -26,7 +26,8 @@ namespace BizHawk.Client.Common public void Dispose() { - _archive?.Dispose(); + if (_archive == null) throw new ObjectDisposedException(nameof(SharpCompressArchiveFile)); + _archive.Dispose(); _archive = null; }