diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-04 23:06:16 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-04 23:06:16 +0000 |
commit | 0ced29e3c40147148340b82da52b9bd222018bec (patch) | |
tree | 6ae4a4b3d94fd626125cd8343e4f9e1f63f19424 | |
parent | afa6d89293a0e0b4c9dfc7061066434f8b0ec225 (diff) | |
download | archiva-0ced29e3c40147148340b82da52b9bd222018bec.tar.gz archiva-0ced29e3c40147148340b82da52b9bd222018bec.zip |
[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
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ""; |