GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Potential NullPointerException when using a Struct with an Array field that contains a null value · Issue #1106 · googleapis/java-spanner

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

Copy link
Copy link
Closed
#1107
Closed
Potential NullPointerException when using a Struct with an Array field that contains a null value#1106
#1107
Copy link
Assignees
olavloite
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.

Description

@olavloite
olavloite
opened on Apr 27, 2021
Issue body actions

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

  1. olavloite
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Apr 27, 2021
  2. olavloite
    self-assigned this
    on Apr 27, 2021
  3. product-auto-label
    added
    api: spannerIssues related to the googleapis/java-spanner API.
    on Apr 27, 2021
  4. olavloite
    added a commit that references this issue on Apr 27, 2021

    fix: prevent potential NullPointerException in Struct with Array fiel…

    This issue will close once commit 1a4cf36 is merged into the 'main' branch.
    1a4cf36
  5. thiagotnunes
    closed this as completedin #1107on Apr 27, 2021
  6. thiagotnunes
    added a commit that references this issue on Apr 27, 2021

    fix: prevent potential NullPointerException in Struct with Array fiel…

    This issue will close once commit c414abb is merged into the 'main' branch.
    c414abb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @olavloite
    olavloite

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.