msnijder30 commented on code in PR #24283:
URL: https://github.com/apache/camel/pull/24283#discussion_r3488412896


##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java:
##########
@@ -168,7 +168,7 @@ public Expression getExpression() {
     }
 
     public EndpointUtilizationStatistics getEndpointUtilizationStatistics() {
-        return consumerCache.getEndpointUtilizationStatistics();
+        return consumerCache != null ? 
consumerCache.getEndpointUtilizationStatistics() : null;

Review Comment:
   Thanks for the review, good points, better to keep it similar with the 
producer side. 
   
   I have implemented the comments, some changes also required in 
DefaultConsumerCache.java so it does not create the service pool (basically 
identical changes to the producer).
   
   The EmptyConsumerCache is also basically identical to the producer with the 
required changes to make it work for the consumer.
   
   Let me know what you think - this solution still solves the issue also, 
tested with my reproducer application.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to