Skip to content

Commit

Permalink
a first attempt to fix issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonifacio committed Sep 27, 2020
1 parent 96eb2d2 commit c0e1eaa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/lang/jimple/internal/Decompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,18 @@ private LocalVariableDeclaration findLocalVariable(int idx) {
return localVariables.get(node);
}
}
throw new RuntimeException("local variable not found");
// the following code deals with the situations
// where the source code has not been compiler with
// debugging information
//
// throw new RuntimeException("local variable not found");
String local = "l" + idx;

LocalVariableDeclaration var = new LocalVariableDeclaration(Type.TUnknown(), local);
LocalVariableNode node = new LocalVariableNode(local, null, null, null, null, idx);
localVariables.put(node, var);

return var;
}

/*
Expand Down

0 comments on commit c0e1eaa

Please sign in to comment.