Skip to content

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

Closed
@brewvn

Description

@brewvn

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions