From e799ee55b9150f9c038124a85e98115d4e289a03 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 24 Nov 2011 10:29:20 +0000 Subject: [PATCH] fix for web structure if there is no web structure git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8088 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/WatchWebStructure_p.java | 1 + 1 file changed, 1 insertion(+) 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; }