Skip to content

Commit

Permalink
CIRC-2036 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Mar 7, 2024
1 parent f6e3b8d commit 1ec7b3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.util.Optional;
import java.util.stream.Stream;

import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -97,7 +98,7 @@ public static JsonObject createCheckInContext(CheckInContext context) {
JsonObject staffSlipContext = createStaffSlipContext(item, firstRequest);
JsonObject itemContext = staffSlipContext.getJsonObject(ITEM);

if (item != null && itemContext != null) {
if (ObjectUtils.allNotNull(item, itemContext)) {
write(itemContext, "lastCheckedInDateTime", ClockUtil.getZonedDateTime());
if (item.getInTransitDestinationServicePoint() != null) {
itemContext.put("toServicePoint", item.getInTransitDestinationServicePoint().getName());
Expand Down

0 comments on commit 1ec7b3b

Please sign in to comment.