Browse Source

修复表达式计算中左值为null时不再往下计算的bug

youseries 7 years ago
parent
commit
73e80dbb96

+ 0 - 3
urule-core/src/main/java/com/bstek/urule/runtime/rete/ValueCompute.java

@@ -73,9 +73,6 @@ public class ValueCompute {
 	
 	private Object compute(Value value,Context context,Object matchedFact,List<Object> allMatchedObjects,Map<String,Object> variableMap){
 		Object leftObj=fetchValue(value,context,matchedFact,allMatchedObjects,variableMap);
-		if(leftObj==null){
-			return null;
-		}
 		ComplexArithmetic arithmetic=value.getArithmetic();
 		if(arithmetic==null){
 			return leftObj;