Fix NPE in annotation deserializer

This commit is contained in:
Alexander Udalov
2014-01-23 22:02:43 +04:00
parent 3e4b0d960a
commit c1777f28f9
@@ -249,8 +249,8 @@ public class AnnotationDescriptorDeserializer implements AnnotationDeserializer
return Annotations.EMPTY;
}
Annotations annotations = new AnnotationsImpl(memberAnnotations.invoke(kotlinClass).get(signature));
return annotations == null ? Annotations.EMPTY : annotations;
List<AnnotationDescriptor> annotations = memberAnnotations.invoke(kotlinClass).get(signature);
return annotations == null ? Annotations.EMPTY : new AnnotationsImpl(annotations);
}
@Nullable