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];