[
https://issues.apache.org/jira/browse/HADOOP-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718851#action_12718851
]
Steve Loughran commented on HADOOP-6028:
----------------------------------------
the line in question is part of the split up of the path
{code}
static byte[][] getPathComponents(String path) {
return getPathComponents(getPathNames(path)); //in getPathComponents
}
{code}
{{getPathNames()}} returns null if the input is bad, but
getPathComponents(String[]) assumes that the array is always non-null.
Presumably this could be unit tested fairly easily, it all being static path
parsing work.
> NPE server side when getting http://namenode/fileChecksum/*
> ------------------------------------------------------------
>
> Key: HADOOP-6028
> URL: https://issues.apache.org/jira/browse/HADOOP-6028
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.21.0
> Reporter: Steve Loughran
> Priority: Minor
>
> when using http://namenode/fileChecksum/* to see if the checksum servlet is
> live, I see an NPE message client side, and a stack trace on the namenode
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.