[jira] Created: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

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

[jira] Created: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)
EntityUtil.getFieldListFromEntityList throw NPE under some conditions
---------------------------------------------------------------------

                 Key: OFBIZ-1244
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk, Release Branch 4.0
            Reporter: Oleg Andreyev
            Priority: Minor
             Fix For: SVN trunk, Release Branch 4.0
         Attachments: EntityUtil.diff

If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)

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

Oleg Andreyev updated OFBIZ-1244:
---------------------------------

    Attachment: EntityUtil.diff

> EntityUtil.getFieldListFromEntityList throw NPE under some conditions
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-1244
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Oleg Andreyev
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EntityUtil.diff
>
>
> If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Si Chen reassigned OFBIZ-1244:
------------------------------

    Assignee: Si Chen

> EntityUtil.getFieldListFromEntityList throw NPE under some conditions
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-1244
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Oleg Andreyev
>            Assignee: Si Chen
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EntityUtil.diff
>
>
> If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528544 ]

Si Chen commented on OFBIZ-1244:
--------------------------------

If there are no objections I will be committing this.

> EntityUtil.getFieldListFromEntityList throw NPE under some conditions
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-1244
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Oleg Andreyev
>            Assignee: Si Chen
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EntityUtil.diff
>
>
> If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Si Chen closed OFBIZ-1244.
--------------------------

    Resolution: Fixed

> EntityUtil.getFieldListFromEntityList throw NPE under some conditions
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-1244
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Oleg Andreyev
>            Assignee: Si Chen
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EntityUtil.diff
>
>
> If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1244) EntityUtil.getFieldListFromEntityList throw NPE under some conditions

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588342#action_12588342 ]

Jacques Le Roux commented on OFBIZ-1244:
----------------------------------------

Commited by Si in trunk rev. 578874, release4.0 578898

> EntityUtil.getFieldListFromEntityList throw NPE under some conditions
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-1244
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1244
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Oleg Andreyev
>            Assignee: Si Chen
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EntityUtil.diff
>
>
> If we call EntityUtil.getFieldListFromEntityList on field that have no values in each row and set distinct to true then FastSet.contains(), inside this method, will throw NPE. The patch corrects this behavior by skipping null values.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.