fix for NPE during host navigation computation

pull/1/head
Michael Peter Christen 13 years ago
parent feb99bc291
commit 06b0081fdc

@ -146,7 +146,9 @@ public class URIMetadataNode implements URIMetadata {
@Override
public String hosthash() {
return (String) this.doc.getFieldValue(YaCySchema.host_id_s.name());
String hosthash = (String) this.doc.getFieldValue(YaCySchema.host_id_s.name());
if (hosthash == null) hosthash = ASCII.String(this.hash, 6, 6);
return hosthash;
}
@Override

Loading…
Cancel
Save