You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2020/03/10 15:06:18 UTC
[ofbiz-framework] branch release18.12 updated: Fixed: Potential
Nullpointer in ErrorPage.ftl
This is an automated email from the ASF dual-hosted git repository.
mbrohl pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new f96b834 Fixed: Potential Nullpointer in ErrorPage.ftl
f96b834 is described below
commit f96b834e01cdba012bea05b2b9c9172cbc557393
Author: Dennis Balkir <de...@ecomify.de>
AuthorDate: Tue Mar 10 15:50:44 2020 +0100
Fixed: Potential Nullpointer in ErrorPage.ftl
(OFBIZ-11448)
Inserted nullcheck for request-attribute
---
themes/common-theme/template/ErrorPage.ftl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/common-theme/template/ErrorPage.ftl b/themes/common-theme/template/ErrorPage.ftl
index 3e20390..47f7caf 100644
--- a/themes/common-theme/template/ErrorPage.ftl
+++ b/themes/common-theme/template/ErrorPage.ftl
@@ -112,7 +112,7 @@ under the License.
<div class="container">
<div class="content">
<p class="error-500"><span>ERROR MESSAGE</span></p>
- <p>${request.getAttribute("_ERROR_MESSAGE_")?replace("\n", "<br/>")}</p>
+ <p>${(request.getAttribute("_ERROR_MESSAGE_")!)?replace("\n", "<br/>")}</p>
<div class="img">
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"