mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 12:17:37 +02:00
Fix possible NPE
git-svn-id: https://smali.googlecode.com/svn/trunk@528 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -360,6 +360,9 @@ public class Deodexerant {
|
||||
}
|
||||
|
||||
TypeIdItem classTypeItem = resolveTypeOrSupertype(classType);
|
||||
if (classTypeItem == null) {
|
||||
return null;
|
||||
}
|
||||
String fieldName = parts[0];
|
||||
String fieldType = parts[1];
|
||||
|
||||
@ -388,8 +391,7 @@ public class Deodexerant {
|
||||
superclassDescriptor = lookupSuperclass(superclassDescriptor);
|
||||
classTypeItem = TypeIdItem.getInternedTypeIdItem(dexFile, superclassDescriptor);
|
||||
}
|
||||
|
||||
} while (classType != null);
|
||||
} while (classTypeItem != null);
|
||||
throw new RuntimeException("Could not find field in dex file");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user