Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Re: nullpointer exception when adding Object to ArrayList

    What variable has the null value?

    Where does the program assign that variable a valid value?

    Post the source code for the line with the error
    and the source code that assigns that variable a...
  2. Re: nullpointer exception when adding Object to ArrayList

    There is a variable at line 136 that has a null value when that statement is executed. Look at line 136, find the variable with the null value (use a println to print out the values if needed)
    and...
  3. Re: nullpointer exception when adding Object to ArrayList

    If you need help with the error, please copy the full text of the error message and paste it here.
    I do NOT go to links posted on the forum.
  4. Re: nullpointer exception when adding Object to ArrayList

    Without that error message, there is no way to know where the error is happening.

    How are you executing the program? How does it display the error message?

    On windows: To copy the contents of...
  5. Re: nullpointer exception when adding Object to ArrayList

    Please copy full text of error message and paste it here. It should show where the error happened.
    Here's a sample:


    Exception in thread "main" java.lang.NullPointerException
    at...
  6. Re: nullpointer exception when adding Object to ArrayList

    Waiting.
  7. Re: nullpointer exception when adding Object to ArrayList

    Are you saying the project is done?

    If you are still getting the error: Please copy the full text of the error message and paste it here.
  8. Re: nullpointer exception when adding Object to ArrayList

    Please copy the full text of the error message and paste it here. It has important info about the error.

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get...
Results 1 to 8 of 8