diff options
Diffstat (limited to 'src/main/javassist/bytecode/annotation/ArrayMemberValue.java')
-rw-r--r-- | src/main/javassist/bytecode/annotation/ArrayMemberValue.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/bytecode/annotation/ArrayMemberValue.java b/src/main/javassist/bytecode/annotation/ArrayMemberValue.java index 58b09b38..389bdf90 100644 --- a/src/main/javassist/bytecode/annotation/ArrayMemberValue.java +++ b/src/main/javassist/bytecode/annotation/ArrayMemberValue.java @@ -130,7 +130,7 @@ public class ArrayMemberValue extends MemberValue { * Writes the value. */ public void write(AnnotationsWriter writer) throws IOException { - int num = values.length; + int num = values == null ? 0 : values.length; writer.arrayValue(num); for (int i = 0; i < num; ++i) values[i].write(writer); |