From fd119deb008f1e21b682a1b5e50ebffbfc1b930f Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 30 Sep 2013 02:50:53 +0200 Subject: [PATCH] fix NPE on modified since check ( Response.requestHeader allowed to be null) --- source/net/yacy/crawler/retrieval/Response.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/retrieval/Response.java b/source/net/yacy/crawler/retrieval/Response.java index 17b9d8c16..e6b859115 100644 --- a/source/net/yacy/crawler/retrieval/Response.java +++ b/source/net/yacy/crawler/retrieval/Response.java @@ -589,7 +589,7 @@ public class Response { // -if-modified-since in request // if the page is fresh at the very moment we can index it - final Date ifModifiedSince = this.requestHeader.ifModifiedSince(); + final Date ifModifiedSince = this.ifModifiedSince(); if ((ifModifiedSince != null) && (this.responseHeader.containsKey(HeaderFramework.LAST_MODIFIED))) { // parse date Date d = this.responseHeader.lastModified();