Leap Motion for Processing Null Pointer Exception in Exported Windows Application

edited June 2014 in Library Questions

Hello All,

I'm having this Null Pointer Exception whenever I start my exported Windows application that uses the Leap Motion for Processing library. I did get that the solution was to put my hand above Leap Motion first before run the app. However, what I don't understand is why I don't have to do that when I just run the pde file in Processing IDE?

I did use a thread to detect a custom gesture in Leap Motion. Is this a cause for the problem? Is there any workaround for this?

This is the error message that I got from Command Prompt:

# LeapMotion-Library v1.1.3 - LeapMotion-SDK v1.0.9 - https://github.com/voidplu
s/leap-motion-processing
Exception in thread "Animation Thread" java.lang.NullPointerException
        at de.voidplus.leapmotion.LeapMotion.getLeftHand(Unknown Source)
        at train_0_4.draw(train_0_4.java:93)
        at processing.core.PApplet.handleDraw(PApplet.java:2305)
        at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)

        at processing.core.PApplet.run(PApplet.java:2176)
        at java.lang.Thread.run(Unknown Source)
Tagged:

Answers

  • Terribly sorry, I've mistakenly double posted. Anyway I can delete this thread?

Sign In or Register to comment.