Nicolas Malin created OFBIZ-11143:
-------------------------------------
Summary: 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
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)