• Post Reply Bookmark Topic Watch Topic
  • New Topic

null pointer exception

 
tomas gussymurphy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting a null pointer exception when i try making new objects of applets that happily run on there own. however when i make a new instance of the object in another class file and call its init() method it breaks. any ideas???
 
tomas gussymurphy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually here is the code. ignore the imports some are not used.


[ July 19, 2004: Message edited by: Marilyn de Queiroz ]
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which line is the NullPointerException being thrown on?

Are Slide and Description applets?
 
tom MURPHY
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes slide and description are applets. is this a problem?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!