Null pointer error in thread

Out of these two does the PApplet offer a significant performance increase? I’m comfortable handling PGraphics, not so much on the PApplet.