Skip to content

Commit 104658d

Browse files
committed
fix null issue
1 parent 3a07192 commit 104658d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/build/buf/protovalidate/internal/evaluator/ObjectValue.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import java.util.Map;
2727
import org.projectnessie.cel.common.ULong;
2828

29+
import javax.annotation.Nullable;
30+
2931
/** The {@link Value} type that contains a field descriptor and its value. */
3032
public final class ObjectValue implements Value {
3133

@@ -49,6 +51,7 @@ public final class ObjectValue implements Value {
4951
}
5052

5153
@Override
54+
@Nullable
5255
public MessageLike messageValue() {
5356
if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE) {
5457
return new ProtobufMessageLike((Message) value);

0 commit comments

Comments
 (0)