From a671f10c9b5fd1860b4d0f99e1e21f74310f7878 Mon Sep 17 00:00:00 2001 From: Asnivor Date: Mon, 14 Jan 2019 15:56:15 +0000 Subject: [PATCH] EmuHawk: SharpCompress - null check --- BizHawk.Client.Common/SharpCompressArchiveHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.Common/SharpCompressArchiveHandler.cs b/BizHawk.Client.Common/SharpCompressArchiveHandler.cs index 0b55f9afc8..f1f62e8bfb 100644 --- a/BizHawk.Client.Common/SharpCompressArchiveHandler.cs +++ b/BizHawk.Client.Common/SharpCompressArchiveHandler.cs @@ -44,7 +44,8 @@ namespace BizHawk.Client.Common catch { } finally { - arcTest.Dispose(); + if (arcTest != null) + arcTest.Dispose(); } return false;