Skip to content

Commit a7b75b7

Browse files
author
ilya
committed
DATA-22937: PR issues fixed
1 parent 704b89a commit a7b75b7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/org/prebid/server/analytics/reporter/liveintent/LiveIntentAnalyticsReporter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ private Optional<Activity> getActivities(AuctionContext auctionContext) {
152152
return Optional.ofNullable(auctionContext)
153153
.map(AuctionContext::getHookExecutionContext)
154154
.map(HookExecutionContext::getStageOutcomes)
155-
.map(stages -> stages.get(Stage.processed_auction_request)).stream()
155+
.map(stages -> stages.get(Stage.processed_auction_request))
156+
.stream()
156157
.flatMap(Collection::stream)
157158
.filter(stageExecutionOutcome -> "auction-request".equals(stageExecutionOutcome.getEntity()))
158159
.map(StageExecutionOutcome::getGroups)
@@ -164,8 +165,11 @@ private Optional<Activity> getActivities(AuctionContext auctionContext) {
164165
&& hook.getStatus() == ExecutionStatus.success
165166
)
166167
.map(HookExecutionOutcome::getAnalyticsTags)
168+
.filter(Objects::nonNull)
167169
.map(Tags::activities)
170+
.filter(Objects::nonNull)
168171
.flatMap(Collection::stream)
172+
.filter(Objects::nonNull)
169173
.findFirst();
170174
}
171175

0 commit comments

Comments
 (0)