Commit 75a6dbfd authored by pcregut's avatar pcregut

Bug if null which may happen if not defined.

parent 97b33a5b
......@@ -1326,9 +1326,9 @@ public class ApplicationReader {
// This can happen when, for example, the Reader reads an application that
// has been only generated partially for, for example, the Writer.
// In that case, the only missing information is the InnerClass access flag.
int classIndex = classNameToIndex.get(name);
Integer classIndex = classNameToIndex.get(name);
int accessFlags = 0;
if (classIndex >= 0) {
if (classIndex != null && classIndex >= 0) {
ClassDefinitionItem cdi = dexFile.getClassDefinitionItem(classIndex);
accessFlags = cdi.getAccessFlags();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment