mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 04:10:13 +02:00
Fix a possible NPE in SmaliCodeFragmentFactory
This commit is contained in:
parent
3bdedd6380
commit
66892009f5
@ -246,7 +246,7 @@ public class SmaliCodeFragmentFactory extends DefaultCodeFragmentFactory {
|
||||
@Override
|
||||
public void visitLocalVariable(final PsiLocalVariable variable) {
|
||||
final String name = variable.getName();
|
||||
if (registerMap.containsKey(name)) {
|
||||
if (name != null && registerMap.containsKey(name)) {
|
||||
int registerNumber = Integer.parseInt(name.substring(1));
|
||||
if (name.charAt(0) == 'p') {
|
||||
registerNumber += ApplicationManager.getApplication().runReadAction(new Computable<Integer>() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user