Issue #723: saving swf with invalid referenced characters fixed

This commit is contained in:
2014-11-20 19:54:50 +01:00
parent 951a8786a2
commit b9c2be102f
@@ -312,6 +312,10 @@ public final class SWF implements SWFContainerItem, Timelined {
for (Integer id : needed) {
if (!addedCharacterIds.contains(id)) {
CharacterTag neededCharacter = characters.get(id);
if (neededCharacter == null) {
continue;
}
if (movedTags.contains(neededCharacter)) {
logger.log(Level.SEVERE, "Fixing characters order failed, recursion detected.");
return;