Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for web structure if there is no web structure

orbitere799ee55b915
diff --git a/htroot/WatchWebStructure_p.java b/htroot/WatchWebStructure_p.java
index ff29c8fcc..abf7e2f23 100644
--- a/htroot/WatchWebStructure_p.java
+++ b/htroot/WatchWebStructure_p.java
@@ -71,6 +71,7 @@ public class WatchWebStructure_p {
sb.webStructure.referencesCount(DigestURI.hosthash6(host)) == 0) {
// find domain with most references
besthost = sb.webStructure.hostWithMaxReferences();
+ if (besthost == null) besthost = host;
} else {
besthost = host;
}