accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-2958) Potential null reference in ScanTask#get()
Date Sun, 22 Mar 2015 18:09:10 GMT

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

Ted Yu resolved ACCUMULO-2958.
------------------------------
    Resolution: Later

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

Mime
View raw message