SpriteBatch.end() generating null pointer exception
- by odaymichael
I am getting a null pointer exception using libGDX that the debugger points as the SpriteBatch.end() line. I was wondering what would cause this.
Here is the offending code block, specifically the batch.end() line:
batch.begin();
for (int j = 0; j < 3; j++)
for (int i = 0; i < 3; i++)
if…