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

Null exception in ZXing.Mobile.ZXingScannnerControl.OnTap #104

Closed
brewvn opened this issue Apr 20, 2014 · 0 comments
Closed

Null exception in ZXing.Mobile.ZXingScannnerControl.OnTap #104

brewvn opened this issue Apr 20, 2014 · 0 comments

Comments

@brewvn
Copy link

brewvn commented Apr 20, 2014

I sometime got this Null exception in my app. I fixed this issue by adding a check of _reader variable:
protected override void OnTap(System.Windows.Input.GestureEventArgs e)
{
base.OnTap(e);
if (_reader != null)
{
_reader.Focus();
}
}
Thanks for greate project!

@Redth Redth closed this as completed in aa21643 Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant