public BlockLocation[] getFileBlockLocations(FileStatus file,
long start,
long len) throws IOException {
if (file == null) {
return null;
<BUG>}
if (start < 0 || len < 0) {</BUG>
throw new IllegalArgumentException("Negative start or len parameter" +
" to getFileBlockLocations");
}

public BlockLocation[] getFileBlockLocations(FileStatus file,
long start,
long len) throws IOException {
if (file == null) {
return null;
}
if (file.isDir()) {
return new BlockLocation[0];
}
if (start < 0 || len < 0) {
throw new IllegalArgumentException("Negative start or len parameter" +
" to getFileBlockLocations");
}
