From f1a39a1eee5d180d1b59f911c2dfcb119b83878a Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 14 Mar 2016 05:58:24 +0400 Subject: [PATCH] (ImgdFormat): check base.ReadMetaData return value. --- ArcFormats/Hexenhaus/ArcWAG.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/Hexenhaus/ArcWAG.cs b/ArcFormats/Hexenhaus/ArcWAG.cs index d2fcea31..f1609e97 100644 --- a/ArcFormats/Hexenhaus/ArcWAG.cs +++ b/ArcFormats/Hexenhaus/ArcWAG.cs @@ -161,6 +161,8 @@ namespace GameRes.Formats.Hexenhaus ImageMetaData info; using (var png = new StreamRegion (stream, 0x10, true)) info = base.ReadMetaData (png); + if (null == info) + return null; stream.Seek (-14, SeekOrigin.End); var cntr = new byte[12]; stream.Read (cntr, 0, 12);