JiriOndrusek commented on a change in pull request #5299:
URL: https://github.com/apache/camel/pull/5299#discussion_r607810643



##########
File path: 
components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java
##########
@@ -182,14 +182,30 @@ private Object doRead(String path, Exchange exchange) 
throws IOException, CamelE
             return JsonPath.using(configuration).parse(list).read(path);
         } else {
             // can we find an adapter which can read the message body/header
-            Object answer = readWithAdapter(path, exchange);
+            Object answer = null;

Review comment:
       @davclaus I reworked fix to detect `ertx.Buffer` to convert buffer to 
`InputStream` and handle as an `InputStream.`.
   
   The other option I see is to detect `vertx.Buffer` and use method with 
InputStream, which uses automatic conversion - which works too. 
   
   But current solution would avoid automatic types convertion and should have 
a sligfhtly better performance. 
   
   WDYT?




-- 
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to