Merge pull request #3882 from nextcloud/NPECheckScanner

Fix #3881 by checking for result being null
This commit is contained in:
Andy Scherzinger 2019-04-12 21:51:56 +02:00 committed by GitHub
commit 36937b2366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();