[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
This commit is contained in:
Olivier Lamy 2013-12-04 23:06:16 +00:00
parent afa6d89293
commit 0ced29e3c4
1 changed files with 1 additions and 1 deletions

View File

@ -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 "";