How can I render some things using SpriteBatch?
I tried to do in this way:
Main class
static SpriteBatch batch;
public void render() {
    Renderer.drawThing();
}
Renderer class
static drawThing() {
    main.batch.begin();
    //drawing some things
    main.batch.end();
}
And it throws a NullPointerException. What am I doing wrong?
 
     
    