mirror of
https://github.com/revanced/smali.git
synced 2025-05-25 02:42:06 +02:00
Fix issue in DexPool with blank parameter annotations
This commit is contained in:
parent
9ed12bac38
commit
2973f7a4af
@ -609,7 +609,11 @@ public abstract class DexWriter<
|
|||||||
|
|
||||||
writer.writeInt(parameterAnnotations.size());
|
writer.writeInt(parameterAnnotations.size());
|
||||||
for (AnnotationSetKey annotationSetKey: parameterAnnotations) {
|
for (AnnotationSetKey annotationSetKey: parameterAnnotations) {
|
||||||
|
if (annotationSetSection.getAnnotations(annotationSetKey).size() > 0) {
|
||||||
writer.writeInt(annotationSetSection.getItemOffset(annotationSetKey));
|
writer.writeInt(annotationSetSection.getItemOffset(annotationSetKey));
|
||||||
|
} else {
|
||||||
|
writer.writeInt(NO_OFFSET);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user