diff --git a/dex-ir/src/main/java/com/googlecode/dex2jar/ir/ts/UnSSATransformer.java b/dex-ir/src/main/java/com/googlecode/dex2jar/ir/ts/UnSSATransformer.java index ac5b4a3a9..af320f402 100644 --- a/dex-ir/src/main/java/com/googlecode/dex2jar/ir/ts/UnSSATransformer.java +++ b/dex-ir/src/main/java/com/googlecode/dex2jar/ir/ts/UnSSATransformer.java @@ -342,13 +342,15 @@ private void genRegGraph(IrMethod method, LiveA liveA) { Local phiLocal = (Local) phiAssignStmt.getOp1(); RegAssign a = (RegAssign) phiLocal.tag; LiveV[] frame = (LiveV[]) stmt.frame; - for (LiveV v : frame) { - if (v != null && v.used) { - RegAssign b = (RegAssign) v.local.tag; - a.excludes.add(b); - b.excludes.add(a); + if (frame != null) { + for (LiveV v : frame) { + if (v != null && v.used) { + RegAssign b = (RegAssign) v.local.tag; + a.excludes.add(b); + b.excludes.add(a); + } } - } + } } } }