Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
chewypear
chewypear's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
NullPointer Exception simple openNI
[2 Replies]
22-Feb-2013 04:08 PM
Forum:
Contributed Library Questions
Hi!
I downloaded processing, OpenNI and the kinect drivers as well as simpleOpenNi. This is also my first attempt at programming the kinect.
When I try and run this code I get a null pointer exception. Any explanation would be hugely appreciated!
import SimpleOpenNI.*;
SimpleOpenNI kinect;
void setup()
{
size(640*2, 480);
kinect = new SimpleOpenNI (this);
kinect.enableRGB();
}
void draw()
{
kinect.update();
image(kinect.rgbImage(), 640, 0);
}
the exception is as follows:
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PGraphics.image(PGraphics.java:3520)
at processing.core.PApplet.image(PApplet.java:11902)
at sketch_130222a.draw(sketch_130222a.java:36)
at processing.core.PApplet.handleDraw(PApplet.java:2142)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:662)
Thanks Everyone!
«Prev
Next »
Moderate user : chewypear
Forum