On Fri, 23 Oct 1998, Pinca George wrote:

> hello world,
> 
> I made a program useing symantec's classes.zip.
> 
> It works fine on windows bat when I move it to Linux I get a nusty
> NullPointerException exception on the line :
> 
> 
> searchButton.setImageURL(symantec.itools.net.RelativeURL.getURL("xx.jpg"));
> 
> The image is there
> 
> Does anyone ,have a clue ?

Has searchButton been initialised properly? I often get these
NullPointerExceptions when I try to access a method an object doesn't have:
for example, a method in my extension to Frame when the object I'm dealing
   with is really a Frame.

If searchButton is supposed to reference an extension to Button that has a
setImageURL method but  actually references a Button (extension) that
doesn't have this method, this is what you'll get.


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.

Reply via email to