Commit faeb0ece authored by pcregut's avatar pcregut

Patch for bug #316374

parent 81ddcccb
......@@ -1155,15 +1155,12 @@ public class ApplicationReader {
// Non primitive array. We visit each elements, as well as calling the
// visitArray method.
int nbElements = dexFile.uleb128();
if (annotationVisitor != null) {
AnnotationVisitor arrayElementsAnnotationVisitor = annotationVisitor.visitArray(valueName);
if (arrayElementsAnnotationVisitor != null) {
for (int elementIndex = 0; elementIndex < nbElements; elementIndex++) {
readEncodedValue(arrayElementsAnnotationVisitor, null);
}
arrayElementsAnnotationVisitor.visitEnd();
}
}
AnnotationVisitor arrayElementsAnnotationVisitor =
(annotationVisitor == null) ? null : annotationVisitor.visitArray(valueName);
for (int elementIndex = 0; elementIndex < nbElements; elementIndex++) {
readEncodedValue(arrayElementsAnnotationVisitor, null);
}
if (arrayElementsAnnotationVisitor != null) arrayElementsAnnotationVisitor.visitEnd();
}
}
......
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