mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +02:00
If an exception occurs while dumping, write out what we have so far
This commit is contained in:
@ -159,12 +159,14 @@ public class DexAnnotator extends AnnotatedBytes {
|
||||
|
||||
mapItems = ordering.immutableSortedCopy(mapItems);
|
||||
|
||||
for (MapItem mapItem: mapItems) {
|
||||
SectionAnnotator annotator = annotators.get(mapItem.getType());
|
||||
annotator.annotateSection(this);
|
||||
try {
|
||||
for (MapItem mapItem: mapItems) {
|
||||
SectionAnnotator annotator = annotators.get(mapItem.getType());
|
||||
annotator.annotateSection(this);
|
||||
}
|
||||
} finally {
|
||||
dexFile.writeAnnotations(out, this);
|
||||
}
|
||||
|
||||
dexFile.writeAnnotations(out, this);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
Reference in New Issue
Block a user