From: Olivier Lamy Date: Wed, 4 Dec 2013 23:06:16 +0000 (+0000) Subject: [MRM-1795] window.archivaRuntimeInfo.version is null in archiva/archiva.js X-Git-Tag: archiva-2.0.0-RC1~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ced29e3c40147148340b82da52b9bd222018bec;p=archiva.git [MRM-1795] window.archivaRuntimeInfo.version is null in archiva/archiva.js add a null check! git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547956 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js index 654e63290..3dff3e792 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js @@ -22,7 +22,7 @@ appendArchivaVersion=function(){ }; timestampNoCache=function(){ - if (window.archivaRuntimeInfo.version.match("SNAPSHOT$")){ + if (window.archivaRuntimeInfo.version && window.archivaRuntimeInfo.version.match("SNAPSHOT$")){ return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():""); } return "";