You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bi...@apache.org on 2010/01/18 11:22:05 UTC

svn commit: r900328 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java

Author: bibryam
Date: Mon Jan 18 10:22:04 2010
New Revision: 900328

URL: http://svn.apache.org/viewvc?rev=900328&view=rev
Log:
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) {