mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Merge pull request #3882 from nextcloud/NPECheckScanner
Fix #3881 by checking for result being null
This commit is contained in:
commit
36937b2366
1 changed files with 1 additions and 1 deletions
|
@ -2415,7 +2415,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
String result = data.getStringExtra("com.blikoon.qrcodescanner.got_qr_scan_relult");
|
||||
|
||||
if (!result.startsWith(getString(R.string.login_data_own_scheme))) {
|
||||
if (result == null || !result.startsWith(getString(R.string.login_data_own_scheme))) {
|
||||
mServerStatusIcon = R.drawable.ic_alert;
|
||||
mServerStatusText = "QR Code could not be read!";
|
||||
showServerStatus();
|
||||
|
|
Loading…
Reference in a new issue