HTML Code:
public class Selection {
private Vector<Cue> cuevalues; // vector of Cues
public Selection()
{
int count = 0;
System.out.println("I AM HERE");
while (count < 16)
{
System.out.println("I AM HERE YO");
Cue cue1 = new Cue(PrintColumns.cuevalue(count), count);
System.out.println("I AM HERE jeez");
cuevalues.add(cue1);
System.out.println("I AM HERE please");
count++;
System.out.println("I AM HERE " + count);
}
}
I am running this code through the constructor and am getting a null pointer exception when adding a Cue object into a vector of Cues.
Does anyone know why this could be happening?
Obvos forget the Printlines.
Thanks