ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (OFBIZ-11143) EntityCondition(EntityOperator, fields...) raise exception with a null value
Date Wed, 24 Jul 2019 06:59:00 GMT

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

Nicolas Malin closed OFBIZ-11143.
---------------------------------
    Resolution: Fixed

Thanks [~pawan.verma], I commited it on trunk at revision 1863685

> EntityCondition(EntityOperator, fields...) raise exception with a null value
> ----------------------------------------------------------------------------
>
>                 Key: OFBIZ-11143
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11143
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: OFBIZ-11143.patch, OFBIZ-11143.patch
>
>
> When yo write a condition like
> {code:java}
> rawProdcuts = from("Product")
>               .where(
> EntityCondition.makeCondition(EntityOperator.AND,
>        'productTypeId', 'RAW_MATERIAL',
>         'quantityUomId', null)
> )
> .queryList(){code}
> the function
> {code:java}
> public static EntityFieldMap makeCondition(EntityJoinOperator joinOp, Object... keysValues)
{code}
> raise a IllegalArgumentException
> The problem came from EntityUtil.makeFields(V... args) (EntityUtil.java:65) who check
if a value is an insteance of Comparable and Serializable but didn't take the case tat where
have a null value.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message