mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 14:38:08 +00:00
#1125 Missing catch block when decompiling try{}catch{} block
This commit is contained in:
@@ -105,7 +105,7 @@ public class TryAVM2Item extends AVM2Item implements Block {
|
||||
List<GraphTargetItem> commands = catchCommands.get(e);
|
||||
appendBlock(null, writer, localData, commands);
|
||||
}
|
||||
if (finallyCommands.size() > 0) {
|
||||
if (catchExceptions.isEmpty() || finallyCommands.size() > 0) {
|
||||
writer.newLine();
|
||||
writer.append("finally");
|
||||
appendBlock(null, writer, localData, finallyCommands);
|
||||
|
||||
@@ -86,7 +86,7 @@ public class TryActionItem extends ActionItem implements Block {
|
||||
List<GraphTargetItem> commands = catchCommands.get(e);
|
||||
appendBlock(null, writer, localData, commands);
|
||||
}
|
||||
if (finallyCommands.size() > 0) {
|
||||
if (catchExceptions.isEmpty() || finallyCommands.size() > 0) {
|
||||
writer.newLine();
|
||||
writer.append("finally");
|
||||
appendBlock(null, writer, localData, finallyCommands);
|
||||
|
||||
Reference in New Issue
Block a user