mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 03:25:05 -05:00
Handle empty keybase.io query, should fix #675
This commit is contained in:
parent
b43fb63753
commit
b48f727f98
@ -42,6 +42,9 @@ public class KeybaseKeyserver extends Keyserver {
|
|||||||
// cut off "0x" if a user is searching for a key id
|
// cut off "0x" if a user is searching for a key id
|
||||||
query = query.substring(2);
|
query = query.substring(2);
|
||||||
}
|
}
|
||||||
|
if (query.isEmpty()) {
|
||||||
|
throw new QueryTooShortException();
|
||||||
|
}
|
||||||
mQuery = query;
|
mQuery = query;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user