You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2019/07/23 09:18:00 UTC
[jira] [Created] (OFBIZ-11143) EntityCondition(EntityOperator,
fields...) raise exception with a null value
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)