Description
The following code can throw NPE if callGetBlockLocations returns null.
If server returns null
List<LocatedBlock> locatedblocks
= callGetBlockLocations(namenode, src, 0, Long.MAX_VALUE).getLocatedBlocks();
The right fix for this is server should throw right exception.
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-2509 FileSystem#getFileChecksum will throw NullPointerException on non existing directories/files.
- Resolved