diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp
index 2f7400fa1..ab5644f9d 100644
--- a/code/nel/src/gui/group_html.cpp
+++ b/code/nel/src/gui/group_html.cpp
@@ -366,8 +366,11 @@ namespace NLGUI
time_t currentTime;
time(¤tTime);
- CHttpCacheObject cache = CHttpCache::getInstance()->lookup(download.dest);
- if (CFile::fileExists(download.dest) && cache.Expires > currentTime)
+ CHttpCacheObject cache;
+ if (CFile::fileExists(download.dest))
+ cache = CHttpCache::getInstance()->lookup(download.dest);
+
+ if (cache.Expires > currentTime)
{
#ifdef LOG_DL
nlwarning("Cache for (%s) is not expired (%s, expires:%d)", download.url.c_str(), download.dest.c_str(), cache.Expires - currentTime);