diff --git a/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs b/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs index 53c0d93..e4c70a3 100644 --- a/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs +++ b/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs @@ -104,7 +104,7 @@ namespace RecrownedAthenaeum.Tools.TextureAtlas imageHandlerQueue.Clear(); Build(AutoCorrectAtlasSize); } - if (ninePatchDictionary.ContainsKey(imageHandler.Name)) + if (ninePatchDictionary != null && ninePatchDictionary.ContainsKey(imageHandler.Name)) { imageHandler.ninePatchData = ninePatchDictionary[imageHandler.Name]; }