chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1601925 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java
Date Wed, 11 Jun 2014 15:25:40 GMT
Author: fmui
Date: Wed Jun 11 15:25:40 2014
New Revision: 1601925

URL: http://svn.apache.org/r1601925
Log:
improved error handling

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.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/repository/ObjectFactoryImpl.java?rev=1601925&r1=1601924&r2=1601925&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java
Wed Jun 11 15:25:40 2014
@@ -588,6 +588,10 @@ public class ObjectFactoryImpl implement
             throw new IllegalArgumentException("Object data is null!");
         }
 
+        if (objectData.getBaseTypeId() == null) {
+            throw new IllegalArgumentException("Base type ID property not set!");
+        }
+        
         ObjectType type = getTypeFromObjectData(objectData);
 
         /* determine type */



Mime
View raw message