Can Java Protocol Buffers ever return null on the list getter of a repeated field?
No, there is no case where it returns null
. In fact, none of the field accessors on Java protobuf generated classes ever return null
; they always return the default value if the field is not present. Similarly, the setters do not allow you to set null
.