You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/03/17 21:18:41 UTC

[jira] [Commented] (BEAM-1745) Unintended unboxing of potential null pointer in AutoValue_ElasticsearchIO_Write

    [ https://issues.apache.org/jira/browse/BEAM-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15930747#comment-15930747 ] 

Ted Yu commented on BEAM-1745:
------------------------------

There is similar problem in AutoValue_ElasticsearchIO_Read

> Unintended unboxing of potential null pointer in AutoValue_ElasticsearchIO_Write
> --------------------------------------------------------------------------------
>
>                 Key: BEAM-1745
>                 URL: https://issues.apache.org/jira/browse/BEAM-1745
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>            Reporter: Ted Yu
>            Assignee: Davor Bonaci
>            Priority: Minor
>
> {code}
>       if (maxBatchSize == null) {
>         missing += " maxBatchSize";
>       }
> ...
>       return new AutoValue_ElasticsearchIO_Write(
>           this.connectionConfiguration,
>           this.maxBatchSize,
>           this.maxBatchSizeBytes);
> {code}
> If maxBatchSize is null, it would be unboxed at the time AutoValue_ElasticsearchIO_Write is constructed.



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