added nullcheck
Merge branch 'master' of https://github.com/Pigmassacre/BarcodeScanner