Potential NullPointerException when using a Struct with an Array field that contains a null value #1106
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
If a
Struct
that contains anArray
field, and thatArray
field contains a non-empty array with at least one null value, is encoded to a proto, aNullPointerException
will occur. This is because thetoProto
method for these specific types of values use the primitive array fields instead of the List values.The text was updated successfully, but these errors were encountered: