![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Exception in thread "main" java.lang.NullPointerException errorI get an exception in thread "main" java.lang.NullPointerException error
with this program: JAVA Code:
JAVA Code:
Last edited by LuciWiz : 19-Nov-2008 at 14:08.
Reason: Please insert your Java code between [java] & [/java] tags
|
|||
|
#2
|
||||
|
||||
Re: exception in thread "main" java.lang.NullPointerException error - please helpProblem is in the constructor...
You have created two tab arrays. Even though the tab array inside the constructor is initialized and set, the class-level tab array is NOT, and so it IS null. This line in the constructor: JAVA Code:
JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 19-Nov-2008 at 20:43.
|
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exception in thread "main" java.lang.NullPointerException | valley1girl | Java Forum | 12 | 18-Jun-2009 13:32 |
| Exception in thread "main" java.lang.NullPointerException | gedcraw555 | Java Forum | 3 | 25-Feb-2008 09:22 |
| Exception in thread "main" java.lang.NullPointerException | Magelloo | Java Forum | 3 | 06-May-2007 00:01 |
| Thread Stopping Exception | Gix | .NET Forum | 12 | 28-Nov-2006 05:30 |
| please help in solving: Exception in thread "main" java.lang.nullpointerexception | vkiran_v | Java Forum | 8 | 09-May-2006 08:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The