*) 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; URL nexturl = null, referrerURL = null;
if ((initiatorHash == null) || (initiatorHash.length() == 0)) initiatorHash = plasmaURL.dummyHash; if ((initiatorHash == null) || (initiatorHash.length() == 0)) initiatorHash = plasmaURL.dummyHash;
try { if (referrerString != null) {
referrerURL = new URL(referrerString); try {
} catch (MalformedURLException e) { referrerURL = new URL(referrerString);
referrerURL = null; } catch (MalformedURLException e) {
referrerString = null; referrerURL = null;
referrerString = null;
}
} }
String referrerHash = (referrerString==null)?null:plasmaURL.urlHash(referrerString); String referrerHash = (referrerString==null)?null:plasmaURL.urlHash(referrerString);
try { try {

Loading…
Cancel
Save