avoid null
@@ -861,6 +861,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
};
addValidationTokenHeader=function(user) {
+ if(user) {
if (user.validationToken) {
$.log("Adding validation token "+user.validationToken);
$.ajaxSetup({
@@ -872,6 +873,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
$.log("No validation token in user object "+user.username+", "+user.validationToken);
}
}
+ };
startArchivaApplication=function(){
