Search:

Type: Posts; User: Mr.777

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,698

    Re: Null Exception Error & Help with PrintWriter

    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...
  2. Replies
    8
    Views
    1,698

    Re: Null Exception Error & Help with PrintWriter

    Print the line right above the line number 36.


    System.out.println(line);
    field=line.split(" ");
  3. Replies
    8
    Views
    1,698

    Re: Null Exception Error & Help with PrintWriter

    What if line="" ?
  4. Replies
    8
    Views
    1,698

    Re: Null Exception Error & Help with PrintWriter

    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.
Results 1 to 4 of 4