String inputPath = args[0];
FileSystem dfs = new DistributedFileSystem();
FileStatus[] files= null;
try{
files = dfs.listStatus(new path(inputPath));
}
catch(IOExcpeption err){
//Do stuff
}
The code build fine with maven. However, when I try to run it, I get a nullPointerException inside the try clause. Any ideas?