When I run the code below I get this error
NullreferenceException was unhandled..
below is my code
private void showScannerDialog() {
this.scanner is set to null when you pass it to dialog.ShowSelectItems(). The function may be trying to use it without checking if it is null.