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

NullPointerException when calling EntityQuery#getFieldList

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.04
    • Component/s: framework
    • Labels:
      None
    • Flags:
      Patch

      Description

      When performing EntityQuery#getFieldList without specifying distinct a NullPointerException is thrown, because of the condition if (this.distinct). It implicitly calls this.distinct.booleanValue() which throws the exception if distinct is null.

      1. OFBIZ-9624.patch
        0.8 kB
        Tobias Laufkötter

        Issue Links

          Activity

          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Thanks Tobias,

          Your patch is in
          trunk r1806220
          R16.11 r1806221

          Previous releases branches not concerned

          Show
          jacques.le.roux Jacques Le Roux added a comment - Thanks Tobias, Your patch is in trunk r1806220 R16.11 r1806221 Previous releases branches not concerned
          Hide
          tlaufkoetter Tobias Laufkötter added a comment -

          The attached patch simply wraps this.distinct in Boolean.TRUE.equals(this.distinct).

          Show
          tlaufkoetter Tobias Laufkötter added a comment - The attached patch simply wraps this.distinct in Boolean.TRUE.equals(this.distinct) .

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              tlaufkoetter Tobias Laufkötter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development