AS3NUI/AIRKinect — Issue #13: NullObject Reference in AIRKinect.as line 320 (v1.6 on AIR 3.1)
Author: benkuper
Created: 2011-12-29 02:16:16+00:00
State: open

Hi,
first of all, congrats and a big thak you for this very promising framework ! I've been waiting this for a long, and i'm glad someone had both the time, the skills and the courage to get his hands on it.

I tested locally the demos and they're working just fine, i could test all the possibilites.

But when i try to compile them, i get a runtime error :

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.as3nui.nativeExtensions.kinect::AIRKinect/createContext()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect\src\com\as3nui\nativeExtensions\kinect\AIRKinect.as:320]
at com.as3nui.nativeExtensions.kinect::AIRKinect()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect\src\com\as3nui\nativeExtensions\kinect\AIRKinect.as:310]
at com.as3nui.nativeExtensions.kinect::AIRKinect$/get instance()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect\src\com\as3nui\nativeExtensions\kinect\AIRKinect.as:97]
at com.as3nui.nativeExtensions.kinect::AIRKinect$/initialize()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect\src\com\as3nui\nativeExtensions\kinect\AIRKinect.as:105]
at com.as3nui.airkinect.extended.manager::AIRKinectManager/initialize()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect Extended\src\com\as3nui\airkinect\extended\manager\AIRKinectManager.as:255]
at com.as3nui.airkinect.extended.manager::AIRKinectManager$/initialize()[C:\Client Files\2011\as3NUI\AIRKinect\flash development\AIRKinect Extended\src\com\as3nui\airkinect\extended\manager\AIRKinectManager.as:66]

I tried with both the examples and a simple class invoking this line :

AIRKinectManager.initialize(AIRKinectFlags.NUI_INITIALIZE_FLAG_USES_SKELETON | AIRKinectFlags.NUI_INITIALIZE_FLAG_USES_COLOR)

As the lib comes in a swc, there is no source to digg in and i couldn't get further.

I'm on FlashDevelop, with latest version of AIRKinect and AIR at this time.

Thanks for you time,

Ben