You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2015/03/23 19:49:54 UTC

[jira] [Commented] (ACCUMULO-2958) Potential null reference in ScanTask#get()

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

Christopher Tubbs commented on ACCUMULO-2958:
---------------------------------------------

This issue was resolved with ACCUMULO-3643

> Potential null reference in ScanTask#get()
> ------------------------------------------
>
>                 Key: ACCUMULO-2958
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2958
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>     if (localRQ == null && state.get() == ADDED)
>       throw new IllegalStateException("Tried to get result twice");
>     Object r = localRQ.poll(timeout, unit);
> {code}
> If state.get() is not ADDED, the poll() method call would result in NullPointerException



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