Improved: UtilValidate isEmpty and isNotEmpty methods not used correctly
(OFBIZ-8413) Thanks Pawan Verma for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -763,7 +763,7 @@ public class FindServices {
|
||||
Debug.logInfo("Problem getting list Item" + e,module);
|
||||
}
|
||||
|
||||
if (!UtilValidate.isEmpty(item)) {
|
||||
if (UtilValidate.isNotEmpty(item)) {
|
||||
result.put("item",item);
|
||||
}
|
||||
result.remove("listIt");
|
||||
|
||||
@@ -923,7 +923,7 @@ public class LoginServices {
|
||||
|
||||
}
|
||||
|
||||
if (!UtilValidate.isNotEmpty(newPassword) || !UtilValidate.isNotEmpty(newPasswordVerify)) {
|
||||
if (UtilValidate.isEmpty(newPassword) || UtilValidate.isEmpty(newPasswordVerify)) {
|
||||
errMsg = UtilProperties.getMessage(resource,"loginservices.password_or_verify_missing", locale);
|
||||
errorMessageList.add(errMsg);
|
||||
} else if (!newPassword.equals(newPasswordVerify)) {
|
||||
|
||||
+1
-1
@@ -217,7 +217,7 @@ public final class ScriptHelperImpl implements ScriptHelper {
|
||||
int transactionTimeout = -1;
|
||||
if (UtilValidate.isNotEmpty(requireNewTransactionStr)) {
|
||||
String timeoutStr = (String) args.get("transactionTimout");
|
||||
if (!UtilValidate.isEmpty(timeoutStr)) {
|
||||
if (UtilValidate.isNotEmpty(timeoutStr)) {
|
||||
try {
|
||||
transactionTimeout = Integer.parseInt(timeoutStr);
|
||||
} catch (NumberFormatException e) {
|
||||
|
||||
Reference in New Issue
Block a user