wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes ArrayList - still getting null pointer exception? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

ArrayList - still getting null pointer exception?

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi, I think I need help here.
I'm trying to pass data values from several applets to a single applet ie a class which "collects" all the records and store them temporarily.
This is the simplified version of the TXRecord class, its var_<variables> are updated by other applets:

This is the startup applet which instantiates the TXRecord to collect data values for the record:

Next, this frame updates the var_<variables> in TXRecord and the txrecord.var_counter increments by one

What have I done wrong now? :-(
TIA :-)
[ edited to break apart really long line of code -ds ]
[ February 25, 2004: Message edited by: Dirk Schreckmann ]

humanum errare est.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Perhaps I'm missing something.
I don't see how that line of code could be creating a NullPointerException. Could you post a more complete code example and the complete exception message?
Just out of curiosity, how is the init method of TXRecord being invoked?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Nevermind. I see that you continued this in a different thread.
It is sorta covered in the JavaRanch Style Guide.
subject: ArrayList - still getting null pointer exception?
Similar Threads
ArrayList compile time error - cannot resolve symbol
System.out.println not responding ?
NullPointerException when using String[]
Totally baffled with ArrayList throwing NullPOinterException !
Need Help with ArrayList - NullPointerException