[ 
https://issues.apache.org/jira/browse/CAMEL-11848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182112#comment-16182112
 ] 

Claus Ibsen commented on CAMEL-11848:
-------------------------------------

You are welcome to provide a fix as a github PR
http://camel.apache.org/contributing

> Using MongoDB Tailable Cursor Consumer on non-capped collection results in 
> NullPointerException (instead of proper error message)
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11848
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11848
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb, camel-mongodb3
>    Affects Versions: 2.19.3
>            Reporter: Frank Wein
>            Priority: Minor
>
> When using the Camel MongoDB component with a tailable cursor consumer on a 
> non-capped collection, you get a NullPointerException (also see 
> http://camel.apache.org/mongodb.html#MongoDB-TailableCursorConsumer on this). 
> While using this feature on a non-capped collection is not supported, the 
> error message should be better (at the moment it only throws a 
> NullPointerException because the code tries to unbox a null in a Boolean 
> object). The code actually already has a better error message, but there is a 
> small logic flaw that prevents the error message from showing up. See 
> https://github.com/apache/camel/blob/camel-2.19.3/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java#L78
>  for the code.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to