You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pg...@apache.org on 2020/03/06 16:38:05 UTC

[ofbiz-framework] branch trunk updated: Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId

This is an automated email from the ASF dual-hosted git repository.

pgil pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b79c95b  Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
b79c95b is described below

commit b79c95b151a2daaccefa6436390865e83dff2841
Author: Gil Portenseigne <gi...@nereide.fr>
AuthorDate: Fri Mar 6 17:36:14 2020 +0100

    Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
    
    (OFBIZ-9984)
    Fix introduced NPE detected by the introduced test.
---
 applications/order/groovyScripts/order/OrderServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/order/groovyScripts/order/OrderServices.groovy b/applications/order/groovyScripts/order/OrderServices.groovy
index 9fd9b8f..8af3ad1 100644
--- a/applications/order/groovyScripts/order/OrderServices.groovy
+++ b/applications/order/groovyScripts/order/OrderServices.groovy
@@ -43,7 +43,7 @@ def getNextOrderId() {
 
     if (customMethod) {
         customMethodName = customMethod.customMethodName
-    } else if (partyAcctgPreference.oldOrderSequenceEnumId == 'ODRSQ_ENF_SEQ') {
+    } else if (partyAcctgPreference && partyAcctgPreference.oldOrderSequenceEnumId == 'ODRSQ_ENF_SEQ') {
         customMethodName = 'orderSequence_enforced'
     }