We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b6a2ec + 16710de commit 52b1e1cCopy full SHA for 52b1e1c
1 file changed
ZXBStudio/DocumentEditors/ZXGraphics/SpriteEditor.axaml.cs
@@ -299,7 +299,10 @@ private void _Initialize(string fileName)
299
var al = (sprite.Width / 8) * (sprite.Height / 8);
300
foreach (var pattern in sprite.Patterns)
301
{
302
- pattern.Attributes = pattern.Attributes.Take(al).ToArray();
+ if (pattern.Attributes != null)
303
+ {
304
+ pattern.Attributes = pattern.Attributes.Take(al).ToArray();
305
+ }
306
}
307
308
0 commit comments