diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodInfo.java index bfd9400bf..dfa4dc4fc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/MethodInfo.java @@ -323,9 +323,12 @@ public class MethodInfo { } public GraphTextWriter getReturnTypeStr(GraphTextWriter writer, AVM2ConstantPool constants, List fullyQualifiedNames) { - String rname = constants.getMultiname(ret_type).getName(constants, fullyQualifiedNames, true); - rname = IdentifiersDeobfuscation.printIdentifier(true,rname,"void"); - return writer.hilightSpecial(ret_type == 0 ? "*" : rname, "returns"); + String rname = "*"; + if(ret_type>0){ + constants.getMultiname(ret_type).getName(constants, fullyQualifiedNames, true); + rname = IdentifiersDeobfuscation.printIdentifier(true,rname,"void"); + } + return writer.hilightSpecial(rname, "returns"); } public void setBody(MethodBody body) {