[
https://issues.apache.org/jira/browse/OFBIZ-11143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890901#comment-16890901 ]
Pawan Verma commented on OFBIZ-11143:
-------------------------------------
Nice catch [~soledad].
I have attached a slightly modified patch, please have a look. Thanks! [^OFBIZ-11143.patch]
> 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)