Null Pointer Exception fixed.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Null Pointer Exception fixed.
Last edited by kendraheartt; August 16th, 2012 at 10:38 AM.
All that stuff you are doing with and without doing other stuff does not matter at all for your problem. Your problem boils down to you are using a variable you did not initialize yet. The error message tells you the name of the variable and the line number where it is being used without being initialized. Figure out what variable has not been initialized. Look at your program and decide what the value should be at the time it is being called. Look back at your program to where that value was supposed to have been assigned. If you think it is good, try a toString on it and see what it is.