Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    Add some println() calls to print out the content of the messages and the data, copy what is printed and paste it here.
  2. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    How and where does the code try to display things? What statement is used to display the things?
  3. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    When object reference variables are defined they are given a null value. The code needs to assign a value to the variable to change it.
  4. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    transList.add(newTrans) If that is the line where the NullPointerException happens, then
    There are two variables on that line: transList and newTrans. You need to print the values of BOTH of them...
  5. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    Printing the values will NOT keep the error from happening.

    What code is on line 45? Did you add a println() statement before line 45 that printed out the values of ALL the variables used on line...
  6. [SOLVED] Re: Does not create a Transaction inside the array. Gui, objects, and arraylist

    There is a variable with a null value on line 45. Look at line 45 in the your source and see what variable is null. Then backtrack in the code to see why that variable does not have a valid value....
Results 1 to 6 of 6