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) {
|
ClearingCategory getClearingCategory(PaymentInstruction paymentInstruction) {
|
||||||
ClearingMemberCategory category = clearingMemberCategoryImdg.getSingleObjectByFieldValues(
|
ClearingMemberCategory category = clearingMemberCategoryImdg.getSingleObjectByFieldValues(
|
||||||
Map.of("companyId", paymentInstruction.getSenderId()));
|
Map.of("companyId", paymentInstruction.getSenderId()));
|
||||||
String categoryKey = !TextUtil.isEmpty(category.getClearingMemberCategory())
|
if (category == null) {
|
||||||
? category.getClearingMemberCategory() : "";
|
log.trace("ClearingMemberCategory not found by paymentInstruction[{}].companyId={}",
|
||||||
|
paymentInstruction.getId(), paymentInstruction.getSenderId());
|
||||||
|
}
|
||||||
|
String categoryKey = category != null
|
||||||
|
? category.getClearingMemberCategory() : "";
|
||||||
return IEnumKey.getEnumByKeyOrUndefined(ClearingCategory.class,
|
return IEnumKey.getEnumByKeyOrUndefined(ClearingCategory.class,
|
||||||
categoryKey);
|
categoryKey);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue