beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-1734) Potentially unbox null pointer in AutoValue_BigQueryIO_Write
Date Thu, 16 Mar 2017 16:52:41 GMT
Ted Yu created BEAM-1734:
----------------------------

             Summary: Potentially unbox null pointer in AutoValue_BigQueryIO_Write
                 Key: BEAM-1734
                 URL: https://issues.apache.org/jira/browse/BEAM-1734
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-gcp
            Reporter: Ted Yu
            Assignee: Daniel Halperin
            Priority: Minor


{code}
      if (validate == null) {
        missing += " validate";
      }
...
      return new AutoValue_BigQueryIO_Write(
          this.jsonTableRef,
          this.tableRefFunction,
          this.jsonSchema,
          this.createDisposition,
          this.writeDisposition,
          this.tableDescription,
          this.validate,
          this.bigQueryServices);
{code}
If validate is null, AutoValue_BigQueryIO_Write would try to unbox it since the parameter
is declared as boolean.

There is similar problem in AutoValue_BigQueryIO_Read, around line 166



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message