Catch unsupported charset for keyservers
This commit is contained in:
@@ -36,6 +36,7 @@ import java.net.Proxy;
|
|||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URLDecoder;
|
import java.net.URLDecoder;
|
||||||
|
import java.nio.charset.UnsupportedCharsetException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
@@ -222,6 +223,9 @@ public class ParcelableHkpKeyserver extends Keyserver implements Parcelable {
|
|||||||
} catch (TlsHelper.TlsHelperException e) {
|
} catch (TlsHelper.TlsHelperException e) {
|
||||||
Log.e(Constants.TAG, "Exception in pinning certs", e);
|
Log.e(Constants.TAG, "Exception in pinning certs", e);
|
||||||
throw new Keyserver.QueryFailedException("Exception in pinning certs");
|
throw new Keyserver.QueryFailedException("Exception in pinning certs");
|
||||||
|
} catch (UnsupportedCharsetException e) {
|
||||||
|
Log.e(Constants.TAG, "UnsupportedCharsetException", e);
|
||||||
|
throw new Keyserver.QueryFailedException("Unsupported charset");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user