Author: bibryam
Date: Mon Jan 18 10:22:04 2010
New Revision: 900328
URL:
http://svn.apache.org/viewvc?rev=900328&view=revLog:
Fix NPE in updatePartyGroup service, when statusId is not passed in.
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=900328&r1=900327&r2=900328&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon Jan 18 10:22:04 2010
@@ -481,7 +481,7 @@
return ServiceUtil.returnError(errMsg);
}
- if (!context.get("statusId").equals(oldStatusId)) {
+ if (UtilValidate.isNotEmpty(context.get("statusId")) && !context.get("statusId").equals(oldStatusId)) {
try {
dispatcher.runSync("setPartyStatus", UtilMisc.toMap("partyId", partyId, "statusId", context.get("statusId"), "userLogin", context.get("userLogin")));
} catch (GenericServiceException e) {