Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #1009 in TouchProcessor.as #26

Closed
finalherizo opened this issue Sep 21, 2011 · 2 comments
Closed

Error #1009 in TouchProcessor.as #26

finalherizo opened this issue Sep 21, 2011 · 2 comments
Labels

Comments

@finalherizo
Copy link

With an Air application, I have the following error when alternating left and right click.

[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.

Sometimes, the touch event target is null so I tried to put additional tests into the following lines:

Line 85

if (currentTouch.target != null && currentTouch.target.stage == null)
   currentTouch.setTarget(mStage.hitTest(
      new Point(currentTouch.globalX, currentTouch.globalY), true));

Line 121

if (touch.target != null) {
   touch.target.dispatchEvent(new TouchEvent(TouchEvent.TOUCH, mCurrentTouches,
                                                       mShiftDown, mCtrlDown));
}
@PrimaryFeather
Copy link
Contributor

Thanks for the report and the workaround! I'll look into it.

@aW4KeNiNG
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants