Null pointer error in thread

:pensive:Yikes, my old enemy, reading source code.

its just removing the draw method the canvas now display nothing, but no error…

void run() {
    registerMethod("draw", applet);
  };
  
   void draw(){
      display();
  };