This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a37c0d9 CAMEL-12548: NullPointerException in camel-cmis when using
wrong credentials
a37c0d9 is described below
commit a37c0d99cbca7b8d44d68ac6ccf58bc4d6b091a8
Author: Tadayoshi Sato <[email protected]>
AuthorDate: Mon Jun 4 11:46:53 2018 +0900
CAMEL-12548: NullPointerException in camel-cmis when using wrong credentials
---
.../src/main/java/org/apache/camel/component/cmis/CMISProducer.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISProducer.java
b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISProducer.java
index 4097260..dc92702 100644
---
a/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISProducer.java
+++
b/components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISProducer.java
@@ -195,8 +195,11 @@ public class CMISProducer extends DefaultProducer {
private CMISSessionFacade getSessionFacade() throws Exception {
if (sessionFacade == null) {
- sessionFacade = sessionFacadeFactory.create(getEndpoint());
+ CMISSessionFacade sessionFacade =
sessionFacadeFactory.create(getEndpoint());
sessionFacade.initSession();
+ // make sure to set sessionFacade to the field after successful
initialisation
+ // so that it has a valid session
+ this.sessionFacade = sessionFacade;
}
return sessionFacade;
--
To stop receiving notification emails like this one, please contact
[email protected].