]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1853] On first start up, you get a perpetual loading indicator.
authorOlivier Lamy <olamy@apache.org>
Thu, 24 Jul 2014 02:08:19 +0000 (12:08 +1000)
committerOlivier Lamy <olamy@apache.org>
Thu, 24 Jul 2014 02:08:19 +0000 (12:08 +1000)
Submitted by Robert David

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js

index 87d8272c1561ef43180cb13240f1c221dea75474..1de6e592bcee802949102f61c073379c22f123eb 100644 (file)
@@ -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;