From 7aeadbe7cca7534225a06cdf4a4244be5e165b40 Mon Sep 17 00:00:00 2001 From: hermens Date: Thu, 7 Sep 2006 13:13:19 +0000 Subject: [PATCH] another NullPointerException in http.ResourceInfo git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2510 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- .../plasma/cache/http/ResourceInfo.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/source/de/anomic/plasma/cache/http/ResourceInfo.java b/source/de/anomic/plasma/cache/http/ResourceInfo.java index 6dd837af8..02bd80812 100644 --- a/source/de/anomic/plasma/cache/http/ResourceInfo.java +++ b/source/de/anomic/plasma/cache/http/ResourceInfo.java @@ -351,19 +351,19 @@ public class ResourceInfo implements IResourceInfo { // finally, we shall treat the cache as stale if the modification time is after the if-.. time if (d2.after(d1)) { return false; } } - } - String mimeType = this.getMimeType(); - if (!plasmaHTCache.isPicture(mimeType)) { - // -cookies in request - // unfortunately, we should reload in case of a cookie - // but we think that pictures can still be considered as fresh - // -set-cookie in cached response - // this is a similar case as for COOKIE. - if (this.requestHeader.containsKey(httpHeader.COOKIE) || - this.responseHeader.containsKey(httpHeader.SET_COOKIE) || - this.responseHeader.containsKey(httpHeader.SET_COOKIE2)) { - return false; // too strong + String mimeType = this.getMimeType(); + if (!plasmaHTCache.isPicture(mimeType)) { + // -cookies in request + // unfortunately, we should reload in case of a cookie + // but we think that pictures can still be considered as fresh + // -set-cookie in cached response + // this is a similar case as for COOKIE. + if (this.requestHeader.containsKey(httpHeader.COOKIE) || + this.responseHeader.containsKey(httpHeader.SET_COOKIE) || + this.responseHeader.containsKey(httpHeader.SET_COOKIE2)) { + return false; // too strong + } } }