From a506fb3a74a71d241aeed1c5709c753e6cccc201 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Thu, 8 Sep 2022 17:03:44 -0400 Subject: [PATCH] Add check for null external data --- File_Format_Library/FileFormats/BFRES/BFRES.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/File_Format_Library/FileFormats/BFRES/BFRES.cs b/File_Format_Library/FileFormats/BFRES/BFRES.cs index 16716cfc..19e21f60 100644 --- a/File_Format_Library/FileFormats/BFRES/BFRES.cs +++ b/File_Format_Library/FileFormats/BFRES/BFRES.cs @@ -1284,6 +1284,8 @@ namespace FirstPlugin foreach (var anim in resFile.ExternalFiles) { + if (anim.Data == null) anim.Data = new byte[0]; + // group.AddNode(new ExternalFileData(Name, anim.Data) { FileFormat = file }); string Name = resFile.ExternalFileDict.GetKey(index++);