Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

exception error

 
mj zammit
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i come to doing the following code:



i get the following error:
Exception: java.lang.NullPointerException

what does this mean?
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a continuation of your previous topic?
NullPointerException means you tried to invoke a method on an object reference that has not been initialized. If you print the exception stack trace (there's a method in Exception that does it) it will tell you what line the exception occurred on.
 
mj zammit
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes yes it does continue from the previous topic.
I found out why it was not outputting the results
now i am trying to fix it...
I shall try out what you have suggested...
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!