unstick r1873777

Revision 1873777

Date:
2020/02/08 10:04:45
Author:
jleroux
Revision Log:
"Applied fix from trunk framework for revision: 1828233"
------------------------------------------------------------------------
r1828233 | mbrohl | 2018-04-03 15:06:28 +0200 (mar. 03 avr. 2018) | 1 ligne

Fixed: Prevent possible NullPointerException.
------------------------------------------------------------------------

Files:

Legend:

 
Added
 
Removed
 
Modified
  • ofbiz/branches/release16.11

     
  • ofbiz/branches/release16.11/applications/accounting/src/main/java/org/apache/ofbiz/accounting/finaccount/FinAccountServices.java

     
    204 204 Timestamp now = UtilDateTime.nowTimestamp();
    205 205
    206 206 // now use our values
    207 String finAccountCode = FinAccountHelper.getNewFinAccountCode(accountCodeLength.intValue(), delegator);
    208 inContext.put("finAccountCode", finAccountCode);
    207 String finAccountCode = null;
    208 if (UtilValidate.isNotEmpty(accountCodeLength)) {
    209 finAccountCode = FinAccountHelper.getNewFinAccountCode(accountCodeLength.intValue(), delegator);
    210 inContext.put("finAccountCode", finAccountCode);
    211 }
    209 212
    210 213 // with pin codes, the account code becomes the ID and the pin becomes the code
    211 214 if ("Y".equalsIgnoreCase(requirePinCode)) {