From aa6075402a772e7ce5a40b023123aa69a77ea064 Mon Sep 17 00:00:00 2001 From: sixcooler Date: Fri, 1 Oct 2010 22:41:28 +0000 Subject: [PATCH] smal fix for crawling from 'sitelist' at changes from 7214 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7216 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Crawler_p.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.java index 408395f5a..74c0462cc 100644 --- a/htroot/Crawler_p.java +++ b/htroot/Crawler_p.java @@ -203,7 +203,7 @@ public class Crawler_p { env.setConfig("indexMedia", (indexMedia) ? "true" : "false"); boolean storeHTCache = post.get("storeHTCache", "off").equals("on"); - if (crawlingStartURL.isFile() || crawlingStartURL.isSMB()) storeHTCache = false; + if (crawlingStartURL!= null &&(crawlingStartURL.isFile() || crawlingStartURL.isSMB())) storeHTCache = false; env.setConfig("storeHTCache", (storeHTCache) ? "true" : "false"); final String cachePolicyString = post.get("cachePolicy", "iffresh");