From 0c3ea083c52dd0eecccdfa3f5c5336f3858bca9c Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 15 Nov 2016 10:17:49 +0400 Subject: [PATCH] (FpkOpener.OpenEntry): refined null check. --- ArcFormats/Moonhir/ArcFPK.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Moonhir/ArcFPK.cs b/ArcFormats/Moonhir/ArcFPK.cs index 3a6f1167..babef05e 100644 --- a/ArcFormats/Moonhir/ArcFPK.cs +++ b/ArcFormats/Moonhir/ArcFPK.cs @@ -120,7 +120,7 @@ namespace GameRes.Formats.MoonhirGames byte[] header; if (null == farc || null == fent || !fent.IsEncrypted) { - if (fent.IsEncrypted) + if (fent != null && fent.IsEncrypted) throw new UnknownEncryptionScheme(); input = arc.File.CreateStream (entry.Offset, entry.Size); header = new byte[0x10];