Hey Guys,
I've got the following global array...
public static float camObjCoord[] = new float[8000];
I've got a method feeding values into its indexes I'm sending them like so...
layers.addcube(-6, -2, -6, -2);
i is a class variable declared as..
int i = 0;
and layers is declared as...
GLLayer layers = new GLLayer(this);
But when I do I get a null pointer exception at....
public void addcube(float highx, float lowx, float highz, float lowz){
//Constructing new cube...
cubes++;
float highy = 4.5f;
float lowy = 2.5f;
//FRONT
Global.camObjCoord[i] = highx; //null pointer here.
Does anyone have any idea why it's giving me a null pointer? There is more code but I thought it'd be sufficent to give you only what's relevant.
Thanks