diff --git a/source/de/anomic/yacy/graphics/WebStructureGraph.java b/source/de/anomic/yacy/graphics/WebStructureGraph.java index 3d5903555..61dffb0b1 100644 --- a/source/de/anomic/yacy/graphics/WebStructureGraph.java +++ b/source/de/anomic/yacy/graphics/WebStructureGraph.java @@ -147,7 +147,8 @@ public class WebStructureGraph { final HashSet globalRefURLs = new HashSet(); final String refhost = url.getHost(); MultiProtocolURI u; - while (it.hasNext()) { + int maxref = 1000; + while (it.hasNext() && maxref-- > 0) { u = it.next(); if (u == null) continue; if (refhost != null && u.getHost() != null && !u.getHost().equals(refhost)) {