Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

G4P - GDropList NPE

$
0
0

Hello, this seems stupid, but when i try to create a new GDropList i get a NPE and i dont have a clue why.

I'm using processing 3.2.1 + G4P 4.2.

import g4p_controls.*;

GDropList ls;

void setup() { size(500, 500); ls = new GDropList(this, 10 ,10, 100, 100); }

stack trace:

java.lang.NullPointerException at g4p_controls.GDropList.updateBuffer(Unknown Source) at g4p_controls.GDropList.draw(Unknown Source) at g4p_controls.GWindowImpl.draw(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1402) at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1395) at processing.core.PApplet.handleMethods(PApplet.java:1589) at processing.core.PApplet.handleDraw(PApplet.java:2425) at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)


Viewing all articles
Browse latest Browse all 2896

Trending Articles