mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-26 16:56:09 +00:00
Fix crash that occurred when scheme of the URI in a QR code is missing
This commit is contained in:
parent
b41e328d22
commit
2a0daae155
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ public class GoogleAuthInfo {
|
|||
}
|
||||
|
||||
public static GoogleAuthInfo parseUri(Uri uri) throws GoogleAuthInfoException {
|
||||
if (!uri.getScheme().equals("otpauth")) {
|
||||
String scheme = uri.getScheme();
|
||||
if (scheme == null || scheme.equals("otpauth")) {
|
||||
throw new GoogleAuthInfoException("unsupported protocol");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue