Processing Forum
Eclipse gives no more information than this so there are no spelling errors etc.Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PApplet.rect(PApplet.java:11045)
at voids.drawBox(voids.java:5)
at Game2.draw(Game2.java:19)
at processing.core.PApplet.handleDraw(PApplet.java:2128)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
at processing.core.PApplet.run(PApplet.java:2006)
at java.lang.Thread.run(Thread.java:680)
public void setup(){size(1024,640);//etc}public void draw(){voids.drawMap(map.main, lvl);voids.drawPlayer(posX,posY);}
public void drawMap(int map[][][], int lvl){//code drawing the map, containing:rect(a,b,c,d);}