From 2d2983151d0a1cd15366c4263ade32ae0380c7ee Mon Sep 17 00:00:00 2001 From: Roman_Barannyk Date: Thu, 7 Mar 2024 12:25:27 +0200 Subject: [PATCH] CIRC-2036 fix code smell issue --- .../folio/circulation/domain/notice/TemplateContextUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/folio/circulation/domain/notice/TemplateContextUtil.java b/src/main/java/org/folio/circulation/domain/notice/TemplateContextUtil.java index 948a695327..2560f8ae8d 100644 --- a/src/main/java/org/folio/circulation/domain/notice/TemplateContextUtil.java +++ b/src/main/java/org/folio/circulation/domain/notice/TemplateContextUtil.java @@ -98,7 +98,7 @@ public static JsonObject createCheckInContext(CheckInContext context) { JsonObject staffSlipContext = createStaffSlipContext(item, firstRequest); JsonObject itemContext = staffSlipContext.getJsonObject(ITEM); - if (ObjectUtils.allNotNull(item, itemContext)) { + if (item != null && itemContext != null) { write(itemContext, "lastCheckedInDateTime", ClockUtil.getZonedDateTime()); if (item.getInTransitDestinationServicePoint() != null) { itemContext.put("toServicePoint", item.getInTransitDestinationServicePoint().getName());