Search:

Type: Posts; User: pbrockway2

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    2,335

    Re: NullPointerException Error

    @chetanaegis: I don't think there is a num in the OP's code. And I wonder if the claim that it is best to always check explicitly for null might be a little extravagant. Sometimes if a variable is...
  2. Replies
    6
    Views
    2,335

    Re: NullPointerException Error

    I'm guessing that line 51 is this one:



    if (search.equals(s[i].getName()))


    Now you will get a null pointer exception whenever you try and use a variable (or other expression) as if it had...
  3. Replies
    6
    Views
    2,335

    Re: NullPointerException Error

    Hi TaoNinja, welcome to the forums!

    I have added "code" tags to your post. The idea is that you put
    at the start of any code and at the end: that way the formatting is preserved by the forum...
Results 1 to 3 of 3