Skip to content

Commit c642b80

Browse files
authored
Merge pull request soot-oss#1370 from Henrycobaltech/develop
Fixed potential NPE in MethodBuilder.java
2 parents 17ed041 + 0e82d4d commit c642b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/soot/asm/MethodBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ public void visitEnd() {
245245
method.addTag(tag);
246246
}
247247
if (invisibleLocalVarAnnotations != null) {
248-
VisibilityLocalVariableAnnotationTag tag = new VisibilityLocalVariableAnnotationTag(visibleLocalVarAnnotations.size(),
248+
VisibilityLocalVariableAnnotationTag tag
249+
= new VisibilityLocalVariableAnnotationTag(invisibleLocalVarAnnotations.size(),
249250
AnnotationConstants.RUNTIME_INVISIBLE);
250251
for (VisibilityAnnotationTag vat : invisibleLocalVarAnnotations) {
251252
tag.addVisibilityAnnotation(vat);

0 commit comments

Comments
 (0)