*) don't try to parse referer string if it's null

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2090 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 9c5ec2c8db
commit ddfe0f0e27

@ -241,11 +241,13 @@ public final class plasmaCrawlStacker {
*/
URL nexturl = null, referrerURL = null;
if ((initiatorHash == null) || (initiatorHash.length() == 0)) initiatorHash = plasmaURL.dummyHash;
try {
referrerURL = new URL(referrerString);
} catch (MalformedURLException e) {
referrerURL = null;
referrerString = null;
if (referrerString != null) {
try {
referrerURL = new URL(referrerString);
} catch (MalformedURLException e) {
referrerURL = null;
referrerString = null;
}
}
String referrerHash = (referrerString==null)?null:plasmaURL.urlHash(referrerString);
try {

Loading…
Cancel
Save