Null pointer error in thread

This by far is probably the easiest solution and provides a 2x increase in performance allowing me to draw a grid twice the size as before at 60 fps. Its not multithreading but it is better performance.