[ 
https://issues.apache.org/jira/browse/BEAM-1745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía updated BEAM-1745:
-------------------------------
    Component/s:     (was: z-do-not-use-sdk-java-extensions)
                 io-java-elasticsearch

> 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: io-java-elasticsearch
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: Not applicable
>
>
> {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
(v7.6.3#76005)

Reply via email to