gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GORA-461) Ineffective null check in HBaseStore#getPartitions
Date Wed, 27 Jan 2016 05:06:39 GMT

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

Lewis John McGibbney resolved GORA-461.
---------------------------------------
    Resolution: Fixed
      Assignee: Renato Javier Marroquín Mogrovejo

Thanks [~renato2099]

> Ineffective null check in HBaseStore#getPartitions
> --------------------------------------------------
>
>                 Key: GORA-461
>                 URL: https://issues.apache.org/jira/browse/GORA-461
>             Project: Apache Gora
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Renato Javier Marroquín Mogrovejo
>            Priority: Minor
>
> Here is related code:
> {code}
>     Pair<byte[][], byte[][]> keys = table.getStartEndKeys();
>     if (keys == null || keys.getFirst() == null ||
>         keys.getFirst().length == 0) {
>       throw new IOException("Expecting at least one region.");
>     }
>     if (table == null) {
>       throw new IOException("No table was provided.");
> {code}
> The null check is ineffective since table has been de-referenced before the check.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message