File tree Expand file tree Collapse file tree
src/main/java/org/prebid/server/analytics/reporter/liveintent Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments