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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Release Branch 11.04, Release Branch 12.04, Release Branch 13.07, Trunk
    • 11.04.05, 12.04.04, 14.12.01, 13.07.01
    • framework
    • None
    • 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

        1. Issue-5689.patch
          1.0 kB
          Rong Nguyen

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: