diff --git a/source/de/anomic/crawler/retrieval/HTTPLoader.java b/source/de/anomic/crawler/retrieval/HTTPLoader.java index b49244cca..1d42f6f0e 100644 --- a/source/de/anomic/crawler/retrieval/HTTPLoader.java +++ b/source/de/anomic/crawler/retrieval/HTTPLoader.java @@ -88,6 +88,7 @@ public final class HTTPLoader { } final String host = request.url().getHost(); + if (host == null || host.length() < 2) throw new IOException("host is not well-formed: '" + host + "'"); final String path = request.url().getFile(); int port = request.url().getPort(); final boolean ssl = request.url().getProtocol().equals("https");