[jira] [Updated] (OFBIZ-9624) NullPointerException when calling EntityQuery#getFieldList

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

[jira] [Updated] (OFBIZ-9624) NullPointerException when calling EntityQuery#getFieldList

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-9624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Laufkötter updated OFBIZ-9624:
-------------------------------------
    Attachment: OFBIZ-9624.patch

> NullPointerException when calling EntityQuery#getFieldList
> ----------------------------------------------------------
>
>                 Key: OFBIZ-9624
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9624
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Tobias Laufkötter
>         Attachments: OFBIZ-9624.patch
>
>
> 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}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)