[
https://issues.apache.org/jira/browse/GORA-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15104113#comment-15104113
]
ASF GitHub Bot commented on GORA-461:
-------------------------------------
Github user lewismc commented on the pull request:
https://github.com/apache/gora/pull/54#issuecomment-172417045
+1
On Sunday, January 17, 2016, Renato Marroquin <[email protected]>
wrote:
> Good catch from Ted Yu, quick fix.
> ------------------------------
> You can view, comment on, or merge this pull request online at:
>
> https://github.com/apache/gora/pull/54
> Commit Summary
>
> - GORA-461
>
> File Changes
>
> - *M*
> gora-hbase/src/main/java/org/apache/gora/hbase/store/HBaseStore.java
> <https://github.com/apache/gora/pull/54/files#diff-0> (8)
>
> Patch Links:
>
> - https://github.com/apache/gora/pull/54.patch
> - https://github.com/apache/gora/pull/54.diff
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/gora/pull/54>.
>
--
*Lewis*
> 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
> 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)