You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/12/22 09:59:56 UTC

(camel) branch main updated: [CAMEL-20280] JCachePolicy: initialize bypassExpression (#12570)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d304a17f842 [CAMEL-20280] JCachePolicy: initialize bypassExpression (#12570)
d304a17f842 is described below

commit d304a17f84230a48d66122c2676111fba3fc50ef
Author: fizzet <je...@gmx.net>
AuthorDate: Fri Dec 22 10:59:50 2023 +0100

    [CAMEL-20280] JCachePolicy: initialize bypassExpression (#12570)
---
 .../apache/camel/component/jcache/policy/JCachePolicyProcessor.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/camel-jcache/src/main/java/org/apache/camel/component/jcache/policy/JCachePolicyProcessor.java b/components/camel-jcache/src/main/java/org/apache/camel/component/jcache/policy/JCachePolicyProcessor.java
index 08d8bc22a5b..fab2ce2eb55 100644
--- a/components/camel-jcache/src/main/java/org/apache/camel/component/jcache/policy/JCachePolicyProcessor.java
+++ b/components/camel-jcache/src/main/java/org/apache/camel/component/jcache/policy/JCachePolicyProcessor.java
@@ -118,6 +118,9 @@ public class JCachePolicyProcessor extends DelegateAsyncProcessor {
         if (keyExpression != null) {
             keyExpression.init(camelContext);
         }
+        if (bypassExpression != null) {
+            bypassExpression.init(camelContext);
+        }
     }
 
     @Override