[
https://issues.apache.org/jira/browse/ACCUMULO-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856106#comment-13856106
]
Josh Elser commented on ACCUMULO-2087:
--------------------------------------
I fixed the code so that it won't throw the NPE anymore, but throws an
IllegalArgumentException when it can't be handled. This is really a bandaid for
1.6.0 and I think something better should be addressed.
I'll leave this open for some commentary before closing and making a new ticket
for >1.6.0.
> Tables.getNamespaces NPE's on missing table ID
> ----------------------------------------------
>
> Key: ACCUMULO-2087
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2087
> Project: Accumulo
> Issue Type: Bug
> Reporter: Josh Elser
> Priority: Critical
> Fix For: 1.6.0
>
>
> If the user provides a tableID which doesn't exist to getNamespace, the
> implementation will NPE if a table with that ID doesn't exist.
> It should throw a proper exception and be noted in the javadoc as such.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)