mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +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);
|
TypeIdItem classTypeItem = resolveTypeOrSupertype(classType);
|
||||||
|
if (classTypeItem == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
String fieldName = parts[0];
|
String fieldName = parts[0];
|
||||||
String fieldType = parts[1];
|
String fieldType = parts[1];
|
||||||
|
|
||||||
@ -388,8 +391,7 @@ public class Deodexerant {
|
|||||||
superclassDescriptor = lookupSuperclass(superclassDescriptor);
|
superclassDescriptor = lookupSuperclass(superclassDescriptor);
|
||||||
classTypeItem = TypeIdItem.getInternedTypeIdItem(dexFile, superclassDescriptor);
|
classTypeItem = TypeIdItem.getInternedTypeIdItem(dexFile, superclassDescriptor);
|
||||||
}
|
}
|
||||||
|
} while (classTypeItem != null);
|
||||||
} while (classType != null);
|
|
||||||
throw new RuntimeException("Could not find field in dex file");
|
throw new RuntimeException("Could not find field in dex file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user