Skip to content

Commit 75f2a30

Browse files
DoHuberGSTim Van Den Broecke
authored andcommitted
Add null check to UnSSATransformer#onUseLocal to avoid NPE crashes
1 parent 0c32cd6 commit 75f2a30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/src/main/java/proguard/dexfile/ir/ts/UnSSATransformer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,10 @@ protected LiveV onAssignLocal(Local local, Value value) {
572572

573573
@Override
574574
protected void onUseLocal(LiveV aValue, Local local) {
575-
aValue.used = true;
575+
if (aValue != null)
576+
{
577+
aValue.used = true;
578+
}
576579
}
577580

578581
}

0 commit comments

Comments
 (0)