fix(FLA export): fix nullpointer exception (#2690)

Fixes #2690
This commit is contained in:
Jindra Petřík
2026-04-06 08:36:49 +02:00
parent 73d8c75360
commit 8d7757a53e

View File

@@ -1153,6 +1153,9 @@ public class XFLConverter {
ct.getNeededCharactersDeep(needed, neededClasses);
for (int n : needed) {
CharacterTag nc = ct.getSwf().getCharacter(n);
if (nc == null) {
continue;
}
if (result.contains(nc)) {
continue;
}
@@ -1166,6 +1169,9 @@ public class XFLConverter {
for (String n : neededClasses) {
CharacterTag nc = ct.getSwf().getCharacterByClass(n);
if (nc == null) {
continue;
}
if (result.contains(nc)) {
continue;
}