mayurbm commented on PR #25555:
URL: https://github.com/apache/camel/pull/25555#issuecomment-5442045725

   @davsclaus The previous fix (null check) was insufficient. Here is the real 
root cause and the corrected fix:
   
   **Root cause**:  returns  (not ) when the  prolog guard short-circuits via 
the bulk loader. The cast to  on the typed assignment line throws  *before* the 
null check even runs — hence the test kept failing on all 3 reruns.
   
   **Fix** (committed ): receive the result as  and use an  pattern match to 
accept only a real , treating / as a miss and falling through to the next 
candidate:
   
   
   
   This makes  return  as expected, while valid XML byte arrays still convert 
to  correctly.


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