catch cases where the qr code produces a null monero address (#702)

This commit is contained in:
m2049r 2020-11-21 22:08:23 +01:00 committed by GitHub
parent 82b25df7ad
commit f40c3d6c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ public class BarcodeData {
}
}
if (!Wallet.isAddressValid(address)) {
if ((address == null) || !Wallet.isAddressValid(address)) {
Timber.d("address invalid");
return null;
}