avoid nullpointer

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1601 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 5250a289bf
commit a7ae9ad5e7

@ -91,7 +91,12 @@ public class ViewProfile {
// read profile from other peer
HashMap profile = yacyClient.getProfile(seed);
yacyCore.log.logInfo("fetched profile:" + profile);
Iterator i = profile.entrySet().iterator();
Iterator i;
if(profile != null){
i = profile.entrySet().iterator();
}else{
i = (new ArrayList()).iterator();
}
Map.Entry entry;
//all known keys which should be set as they are
ArrayList knownKeys = new ArrayList();

Loading…
Cancel
Save