diff options
author | olivier lamy <olamy@apache.org> | 2017-09-02 18:56:07 +1000 |
---|---|---|
committer | olivier lamy <olamy@apache.org> | 2017-09-02 18:56:07 +1000 |
commit | 6abccf351093647c55212e5412188683ed2c9832 (patch) | |
tree | 754a7743d047e226e6ca4da5977d8177940ad244 /archiva-modules/archiva-web/archiva-web-common/src | |
parent | a015600d48b6b64121bb5e857152ded797e1a2eb (diff) | |
download | archiva-6abccf351093647c55212e5412188683ed2c9832.tar.gz archiva-6abccf351093647c55212e5412188683ed2c9832.zip |
avoid npe
Signed-off-by: olivier lamy <olamy@apache.org>
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/enunciate/archiva.fmt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/enunciate/archiva.fmt b/archiva-modules/archiva-web/archiva-web-common/src/enunciate/archiva.fmt index 2137bfb39..e1f2d8430 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/enunciate/archiva.fmt +++ b/archiva-modules/archiva-web/archiva-web-common/src/enunciate/archiva.fmt @@ -431,7 +431,7 @@ limitations under the License. <ul> [#list resourceGroup.resources?sort_by("path") as resource] [#list resource.methods as method] -<li><a href="#${method.slug}">${apiRelativePath}${resourceGroup.contextPath}${resource.path}</a></li> +<li><a href="#${method.slug}">${apiRelativePath}${resourceGroup.contextPath!""}${resource.path}</a></li> [/#list] [/#list] </ul> @@ -452,7 +452,7 @@ limitations under the License. [#list resource.methods as method] <div id="${method.slug}"> - <h2>${method.label} <small>${resource.path} <a href="${apiRelativePath}${resourceGroup.contextPath}${resource.path}" class="glyphicon glyphicon-new-window" target="_blank"></a></small></h2> + <h2>${method.label} <small>${resource.path} <a href="${apiRelativePath}${resourceGroup.contextPath!""}${resource.path}" class="glyphicon glyphicon-new-window" target="_blank"></a></small></h2> [#if resourceGroup.deprecated?? || method.deprecated??] <div class="alert alert-danger">This method has been deprecated. [#if method.deprecated??] ${method.deprecated!""}[#else] ${resource.deprecated!""}[/#if]</div> |