libGDX converting from LWJGL

Hi,

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: http://pastebin.java-gaming.org/d5037981487

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.
http://pastebin.java-gaming.org/5037804278a

Any help is appreciated,
Thanks,

  • Dan