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

Mini-lang's iterate element can cause NPE when verbose mode is on

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Release Branch 11.04, Release Branch 12.04, Release Branch 13.07, Trunk
    • Fix Version/s: 11.04.05, 12.04.04, 14.12.01, 13.07.01
    • Component/s: framework
    • Labels:
      None
    • Environment:

      Linux, Java 6

      Description

      When we use simple-method, we usually iterate list via <Iterate> tag.
      A lot of simple-method code(implement service) use <Iterate> tag without check NULL, so when verbose mode is ON: the objList.getClass().getName() object will cause NULL exception.
      See more details at:
      Iterate#exec(MethodContext methodContext) at line 158

        Attachments

          Activity

            People

            • Assignee:
              adrianc@hlmksw.com Adrian Crum
              Reporter:
              rongnk Rong Nguyen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: