title: PShape 2.08 throws NullPointerException with createShape
body: <p>I am using Processing 2.08 on mac. I am trying to create a PShape using the createShape function as given in the documentation.</p>
  
  <pre><code>PShape s;
  
  void setup(){
    size(500,500);
    s = createShape();
    s.beginShape(QUADS);
    s.fill(0);
    s.vertex(100,100);
    s.vertex(100,300);
    s.vertex(300,300);
    s.vertex(300,100);
    s.endShape(); 
  }
  
  void draw(){
    shape(s);
  }
  </code></pre>
  
  <p>But this program throws NullPointerException. Upon looking up on the Processing.org forum I found a thread saying that the new processing library has problem with this one.</p>
  
  <p>ref: <a href="https://forum.processing.org/topic/changes-to-pshape-in-2-08" rel="nofollow">https://forum.processing.org/topic/changes-to-pshape-in-2-08</a></p>
  
  <p>How do I make this work? Is there any workaround?
  Thanks</p>