Merge pull request #681 from timbray/master

Handle empty keybase.io query, should fix #675
This commit is contained in:
Dominik Schürmann 2014-06-23 13:42:58 +02:00
commit 8f4e66348d

View File

@ -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 {