diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java index 3eca2a6be..61117ef5a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java @@ -336,7 +336,13 @@ public class ActionScript2ClassDetector { try { if (!ifItem.onFalse.isEmpty()) { - throw new AssertException("else clause of the if is not empty"); + //throw new AssertException("else clause of the if is not empty"); + //Note: When there is an else block, it may mean + //that the class was too long to fit maximum of + //jump bytes so the jump target is other invalid location + //(usually negative - will probably lead to other SWF tags) + + //so we will rather silently ignore onFalse section } List classNamePath = pathToSearchInIfCond; @@ -667,11 +673,6 @@ public class ActionScript2ClassDetector { } } - //???? fid 963 - if (!ifItem.onFalse.isEmpty()) { - commands.addAll(pos + 1, ifItem.onFalse); - } - // goto next line and check next classes continue looppos; } catch (AssertException ex) {