From dc52ac5c79b6eda4687518553e20c63fd9ab9af6 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 24 Jul 2014 12:08:19 +1000 Subject: [PATCH] [MRM-1853] On first start up, you get a perpetual loading indicator. Submitted by Robert David --- .../archiva-webapp/src/main/webapp/js/archiva/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js index 87d8272c1..1de6e592b 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js @@ -66,6 +66,9 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa getUserFromLoginCookie=function(){ var cookieContent=$.cookie('archiva_login'); $.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent); + if (!cookieContent) { + return null; + } var user = $.parseJSON(cookieContent); if(!user){ return null;