You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/08/18 13:27:53 UTC

[GitHub] [camel] oscerd commented on a change in pull request #4097: CAMEL-15417 Add optional fileName parameter on copyDocument function

oscerd commented on a change in pull request #4097:
URL: https://github.com/apache/camel/pull/4097#discussion_r472195087



##########
File path: components/camel-cmis/src/main/java/org/apache/camel/component/cmis/CMISProducer.java
##########
@@ -345,7 +347,12 @@ public Document copyDocument(Exchange exchange) throws Exception {
         Folder destinationFolder = (Folder) getSessionFacade().getObjectById(destinationFolderId);
 
         Document document = (Document) getSessionFacade().getObjectById(objectId);
+        String newDocumentName = message.getHeader(PropertyIds.NAME, String.class);
+        if(!StringUtils.isEmpty(newDocumentName))

Review comment:
       Can you please use ObjectHelper instead of StringUtils?




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org