[ofbiz-framework] branch release17.12 updated: Fixed: Potential Nullpointer in ErrorPage.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch release17.12 updated: Fixed: Potential Nullpointer in ErrorPage.ftl

mbrohl
This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 0c7be39  Fixed: Potential Nullpointer in ErrorPage.ftl
0c7be39 is described below

commit 0c7be39acb089433a252adf9f34ed72ab34654d2
Author: Dennis Balkir <[hidden email]>
AuthorDate: Tue Mar 10 15:50:44 2020 +0100

    Fixed: Potential Nullpointer in ErrorPage.ftl
   
    (OFBIZ-11448)
   
    Inserted nullcheck for request-attribute
---
 themes/common/template/ErrorPage.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/common/template/ErrorPage.ftl b/themes/common/template/ErrorPage.ftl
index 3e20390..47f7caf 100644
--- a/themes/common/template/ErrorPage.ftl
+++ b/themes/common/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/"