chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1509783 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java
Date Fri, 02 Aug 2013 17:20:59 GMT
Author: fmui
Date: Fri Aug  2 17:20:59 2013
New Revision: 1509783

URL: http://svn.apache.org/r1509783
Log:
CMIS-695: fixed removeFromFolder

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java?rev=1509783&r1=1509782&r2=1509783&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractFilableCmisObject.java
Fri Aug  2 17:20:59 2013
@@ -174,12 +174,8 @@ public abstract class AbstractFilableCmi
     public void removeFromFolder(ObjectId folderId) {
         String objectId = getObjectId();
 
-        if ((folderId == null) || (folderId.getId() == null)) {
-            throw new IllegalArgumentException("Folder Id must be set!");
-        }
-
-        getBinding().getMultiFilingService()
-                .removeObjectFromFolder(getRepositoryId(), objectId, folderId.getId(), null);
+        getBinding().getMultiFilingService().removeObjectFromFolder(getRepositoryId(), objectId,
+                (folderId != null ? folderId.getId() : null), null);
 
         // invalidate path cache
         getSession().removeObjectFromCache(objectId);



Mime
View raw message