Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ default PBytesStringStringValue.Builder getBytesStringStringBuilder() {
@ToPAnnotationValue
default PAnnotationValue map(Annotation<?> annotation) {
if (annotation instanceof NullAnnotation) {
return null;
// Return an empty PAnnotationValue instead of null to avoid NPE in callers
// that unconditionally set the result on a PAnnotation.Builder.
return getAnnotationBuilder().build();
}
return mapNonNull(annotation);
}
Expand Down
Loading