GitHub user TomasBurian opened a pull request: https://github.com/apache/camel/pull/1731
Update CMISSessionFacade.java Hi, this piece of code causes two calls in a row for content stream. Result of document.getContentStream() has to be stored and used where is needed, not to call document.getContentStream() in condition and than again in return statement. You can merge this pull request into a Git repository by running: $ git pull https://github.com/TomasBurian/camel patch-1 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1731.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1731 ---- commit 9df70144219ed67450d27389257561adc6502d86 Author: Tomáš Burian <tomas.bur...@lundegaard.eu> Date: 2017-05-31T13:06:01Z Update CMISSessionFacade.java Hi, this piece of code causes two calls in a row for content stream. Result of document.getContentStream() has to be stored and used where is needed, not to call document.getContentStream() in condition and than again in return statement. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---