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

working with checkboxes

 
Rodney Ibanez
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help me with this code? i would like to print Morning schedule if checkboxMorning is selected and afternoon if checkboxAfternoon is selected and so forth. I have this code so far but it gives me an error of java.lang.NullPointerException. can you point me on what to do?
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first step is to find out what line of code is throwing the exception. You have a stack trace, right? It should tell you what line of code, in what method, in what class threw it. Start looking there.
 
Rodney Ibanez
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:The first step is to find out what line of code is throwing the exception. You have a stack trace, right? It should tell you what line of code, in what method, in what class threw it. Start looking there.

Thanks for the reply. The stack trace wasn't able to help me at all. I don't know what it was pointing at : ). Anyways, I found the problem and it was very elementary. I did not instantiate the right check boxes ^_^.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!