Sitelet https://github.com/googleapis/java-spanner/issues/1106
Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Potential NullPointerException when using a Struct with an Array field that contains a null value #1106

Description

@olavloite

If a Struct that contains an Array field, and that Array field contains a non-empty array with at least one null value, is encoded to a proto, a NullPointerException will occur. This is because the toProto method for these specific types of values use the primitive array fields instead of the List values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/java-spanner API.priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions