Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
(cherry picked from commit 9335d9d)
  • Loading branch information
ThexXTURBOXx authored and pxb1988 committed Oct 30, 2021
1 parent 4720fb8 commit 121f727
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private void genRegGraph(IrMethod method, LiveA liveA) {
// https://github.com/pxb1988/dex2jar/issues/477
// the exception handler is dead and stmt.frame is null
LabelStmt label = (LabelStmt) stmt;
if (label.phis != null) {
if (label.phis != null && stmt.frame != null) {
for (AssignStmt phiAssignStmt : (List<AssignStmt>) label.phis) {
Local phiLocal = (Local) phiAssignStmt.getOp1();
RegAssign a = (RegAssign) phiLocal.tag;
Expand Down

0 comments on commit 121f727

Please sign in to comment.