File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NullPointerException" Watch "NullPointerException" New topic
Author

NullPointerException

Al Wells
Ranch Hand

Joined: Apr 18, 2005
Posts: 87
I just seem to be having all kinds of problems. But, I am having fun...

I am getting a NullPointerException when I compile this. Given my greenhorn status (ignore the moniker to the left), I can't figure out why. I have declared and caught the exception. What do I have to do and how do I have to do it to get this exception to go away?


[ May 23, 2005: Message edited by: Al Wells ]
Al Wells
Ranch Hand

Joined: Apr 18, 2005
Posts: 87
Never mind... I did not create a new button. Figured it out due to my handy Java In A Nutshell reference book.
Jeff Grant
Ranch Hand

Joined: Dec 19, 2001
Posts: 169
In the future, would have helped to print your stack trace so we could see exactly where the error was coming from.
Al Wells
Ranch Hand

Joined: Apr 18, 2005
Posts: 87
Jeff,

I will try that. I am still learning and appreciate the feedback that will help me be helped. Thanks for the info.

Cheers,
Al
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException