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 Sonal Patwari and Suraj Khurana for your contribution
@@ -41,7 +41,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
