*) avoid nullpointerException on seed.getAddress() (reported by netbude)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3431 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent fc43007490
commit 26450a1d9a

@ -573,6 +573,10 @@ public final class yacySeedDB {
seed = (yacySeed) e.nextElement();
if (seed != null) {
addressStr = seed.getAddress();
if (addressStr == null) {
serverLog.logWarning("YACY","lookupByIP: address of seed " + seed.getName() + "is null.");
continue;
}
if ((pos = addressStr.indexOf(":"))!= -1) {
addressStr = addressStr.substring(0,pos);
}

Loading…
Cancel
Save