Improved: In 'ValidateMethod.java', when we don't pass any className from xml files. default value 'org.apache.ofbiz.base.util.UtilValidate' should be set for className.
Thanks Suraj Khurana and Sonal Patwari for your contribution.
@@ -26,6 +26,7 @@ import java.util.Map;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.GeneralException;
import org.apache.ofbiz.base.util.ObjectType;
+import org.apache.ofbiz.minilang.MiniLangValidate;
import org.w3c.dom.Element;
/**
@@ -41,7 +42,7 @@ public class ValidateMethod extends SimpleMapOperation {
public ValidateMethod(Element element, SimpleMapProcess simpleMapProcess) {
super(element, simpleMapProcess);
this.methodName = element.getAttribute("method");
- this.className = element.getAttribute("class");
+ this.className = MiniLangValidate.checkAttribute(element.getAttribute("class"), "org.apache.ofbiz.base.util.UtilValidate");
}
@Override
