Skip to content

Commit

Permalink
CIRC-2036 Fix Sonar reliability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkurash committed Mar 7, 2024
1 parent 6357e28 commit f6e3b8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
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 @@ -98,7 +97,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());
Expand Down

0 comments on commit f6e3b8d

Please sign in to comment.