Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed: EntityCondition(EntityOperator, fields...) raise exception wit…
…h a null value (OFBIZ-11143) When you write an entity condition like rawProdcuts = from(Product).where( EntityCondition.makeCondition(EntityOperator.AND, 'productTypeId', 'RAW_MATERIAL', 'quantityUomId', null) ).queryList() the function public static EntityFieldMap makeCondition(EntityJoinOperator joinOp, Object... keysValues) 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. Thanks to Pawan Verma for the review git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863685 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
with
9 additions
and 5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters