Handle empty keybase.io query, should fix #675

This commit is contained in:
Tim Bray 2014-06-22 22:37:05 -07:00
parent b43fb63753
commit b48f727f98

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 {