aspose file tools*
The moose likes Beginning Java and the fly likes Null Pointer Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Null Pointer Exception" Watch "Null Pointer Exception" New topic
Author

Null Pointer Exception

Corbin Blake
Greenhorn

Joined: Nov 10, 2004
Posts: 22
Can anybody tell me how i can get rid of a null pointer exception, that happens in a runtime error.

Here are all my variables for the entire class:


here is my code


I hope you know your paying me for this!
Mark Patrick
Ranch Hand

Joined: Feb 22, 2004
Posts: 51
What is ".sequence"?


Mark Patrick<br />SCJP 1.4
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Hi Corbin,

public Sequence[] aStrand = new Sequence[20];
Did you create any Sequence objects in aStrand?

For example:


You might want to take a look at Java Tutorial: Arrays.

Joyce
Corbin Blake
Greenhorn

Joined: Nov 10, 2004
Posts: 22
okay, i have it intialized now. I swore that i have tried that before but for some reason it didn't work. Thanks so much for the help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null Pointer Exception