Null pointer error in thread

ooh ignore that, I thought it had something to do with the threads not being synchronized to the main render window, and thought linking and passing the main PApplet would help. It did not, assume the line to use this,. The code at the moment, more often than not just produces a gray box the size of the canvas, restart it, another gray box, restart it again, and the background is displayed, this is completely random and was reminding me of how the threads were just called randomly, so in my limited knowledge I thought pass PApplet. In any case, nothing but the background is drawn when something does happen.