Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11448

Potential Nullpointer in ErrorPage.ftl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Release Branch 18.12, Release Branch 17.12, Trunk
    • 17.12.02, 18.12.01
    • None
    • None

    Description

      This line of code right here:

      <p>${request.getAttribute("_ERROR_MESSAGE_")?replace("\n", "<br/>")}</p>
      

      can produce a nullpointer error, since the attribute "ERROR_MESSAGE" from the request ist used by the replace method of freemarker, without nullchecking it first.

      Attachments

        Issue Links

          Activity

            People

              mbrohl Michael Brohl
              Dennis Balkir Dennis Balkir
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m