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.gitThe 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 <
[hidden email]>
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'
}