Search:

Type: Posts; User: copeg

Search: Search took 0.12 seconds.

  1. Replies
    14
    Views
    1,791

    [SOLVED] Re: Getting a null pointer exception.

    Based upon the initial code you posted that should still throw the exception as you set receiver to null, then call length() on that reference, so I suspect that is not all that changed
  2. Replies
    14
    Views
    1,791

    [SOLVED] Re: Getting a null pointer exception.

    Something is null on that line listed in the Exception stack trace...step through the code and think about what is set to null (null is just that - you cannot call methods on a null reference)
Results 1 to 2 of 2