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

Hudson commented on GORA-461:
-----------------------------

SUCCESS: Integrated in gora-trunk #1637 (See 
[https://builds.apache.org/job/gora-trunk/1637/])
GORA-461 Ineffective null check in HBaseStore#getPartitions (lewis.j.mcgibbney: 
rev 01437e1aea6098e6a31f001d139246199ce48066)
* gora-hbase/src/main/java/org/apache/gora/hbase/store/HBaseStore.java


> 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)

Reply via email to