http://jira.mfd.msk:8088/browse/CLS-189 fix npe три
This commit is contained in:
parent
502a343c55
commit
e6e7dd57c6
1 changed files with 7 additions and 3 deletions
|
|
@ -181,9 +181,13 @@ public class SdfCreatorBySTLDPayment {
|
|||
|
||||
ClearingCategory getClearingCategory(PaymentInstruction paymentInstruction) {
|
||||
ClearingMemberCategory category = clearingMemberCategoryImdg.getSingleObjectByFieldValues(
|
||||
Map.of("companyId", paymentInstruction.getSenderId()));
|
||||
String categoryKey = !TextUtil.isEmpty(category.getClearingMemberCategory())
|
||||
? category.getClearingMemberCategory() : "";
|
||||
Map.of("companyId", paymentInstruction.getSenderId()));
|
||||
if (category == null) {
|
||||
log.trace("ClearingMemberCategory not found by paymentInstruction[{}].companyId={}",
|
||||
paymentInstruction.getId(), paymentInstruction.getSenderId());
|
||||
}
|
||||
String categoryKey = category != null
|
||||
? category.getClearingMemberCategory() : "";
|
||||
return IEnumKey.getEnumByKeyOrUndefined(ClearingCategory.class,
|
||||
categoryKey);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue