From 0ced29e3c40147148340b82da52b9bd222018bec Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 4 Dec 2013 23:06:16 +0000 Subject: [PATCH] [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 --- .../archiva-webapp/src/main/webapp/js/archiva/archiva.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; -- 2.39.5