It crashes coz there is null in the line variable (local).
And when it tries to split it, it crashes coz null can not be split down.
You will ofcourse ask i have a check line!=null. It will never...
Type: Posts; User: Mr.777
It crashes coz there is null in the line variable (local).
And when it tries to split it, it crashes coz null can not be split down.
You will ofcourse ask i have a check line!=null. It will never...
Print the line right above the line number 36.
System.out.println(line);
field=line.split(" ");
What if line="" ?
What is Line 36 according to your Compiler?
State that line or trace yourself, you are passing or comparing null to something. Backtrack to see, how and from where this null is appearing.