From bfc38fc160a3927e0d730bd5b025fce15384b652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 30 Oct 2015 12:08:05 +0100 Subject: [PATCH] AS3 direct edit - empty parenthesis disallowed --- .../flash/abc/avm2/parser/script/ActionScript3Parser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java index bf4c7ce25..8848dbde1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java @@ -2218,6 +2218,9 @@ public class ActionScript3Parser { case PARENT_OPEN: ret = new ParenthesisItem(null, expression(thisType, pkg, needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, true, variables)); expectedType(SymbolType.PARENT_CLOSE); + if (ret.value == null) { + throw new AVM2ParseException("Expression in parenthesis expected", lexer.yyline()); + } allowMemberOrCall = true; break; case NEW: