libGDX converting from LWJGL


I have a world generator that works perfectly in LWJGL, and am now trying to port it to libGDX for many reasons,

here is the LWJGL code:

and here is my attempt at porting to libGDX, I know I am not rendering it properly, because it goes through everything and when it gets to render, it throws a NullPointerException.

Any help is appreciated,

  • Dan