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



##########
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:
       The class from camel-util
   
   
https://github.com/apache/camel/blob/master/core/camel-util/src/main/java/org/apache/camel/util/ObjectHelper.java#L183




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to