chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1439182 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java
Date Sun, 27 Jan 2013 21:22:25 GMT
Author: jens
Date: Sun Jan 27 21:22:25 2013
New Revision: 1439182

URL: http://svn.apache.org/viewvc?rev=1439182&view=rev
Log:
InMemory: Fix an NPE when creating types without properties

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java?rev=1439182&r1=1439181&r2=1439182&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryRepositoryServiceImpl.java
Sun Jan 27 21:22:25 2013
@@ -153,7 +153,8 @@ public class InMemoryRepositoryServiceIm
             throw new CmisInvalidArgumentException("Unknown repository " + repositoryId);
         
         TypeValidator.checkType(typeManager, type);
-        TypeValidator.checkProperties(typeManager, type.getPropertyDefinitions().values());
+        if (null != type.getPropertyDefinitions())
+            TypeValidator.checkProperties(typeManager, type.getPropertyDefinitions().values());
         
         typeManager.addTypeDefinition(type);
         return type;



Mime
View raw message