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

Andrea Cosentino commented on CAMEL-12635:
------------------------------------------

[~onders] please update the Jira here with the commit ref and backport to 
2.22.x too, when you have time. Thanks.

> Potential NPE in CamelEndpointDetails.hashCode method
> -----------------------------------------------------
>
>                 Key: CAMEL-12635
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12635
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 2.22.0
>            Reporter: Aurélien Pupier
>            Assignee: Önder Sezgin
>            Priority: Minor
>             Fix For: 2.22.1, 2.23.0
>
>
> in case className is null, there is an NPE
>  
> {noformat}
> java.lang.NullPointerException
> at 
> org.apache.camel.parser.model.CamelEndpointDetails.hashCode(CamelEndpointDetails.java:153)
> at java.util.HashMap.hash(HashMap.java:338)
> at java.util.HashMap.put(HashMap.java:611)
> at 
> com.github.cameltooling.lsp.internal.CamelTextDocumentService.didSave(CamelTextDocumentService.java:223){noformat}
> it is also possible with endpointURi but i think that endpointURi is always 
> not null (but maybe worth checking for non null in hashCode method



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to