You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by je...@apache.org on 2011/11/09 07:36:15 UTC

svn commit: r1199630 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java

Author: jens
Date: Wed Nov  9 06:36:14 2011
New Revision: 1199630

URL: http://svn.apache.org/viewvc?rev=1199630&view=rev
Log:
fix NPE in InMemory implementation of setContentStream [CMIS-470]

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.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/InMemoryObjectServiceImpl.java?rev=1199630&r1=1199629&r2=1199630&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java Wed Nov  9 06:36:14 2011
@@ -534,6 +534,9 @@ public class InMemoryObjectServiceImpl e
 
         LOG.debug("start setContentStream()");
         Content content;
+        if ( null == overwriteFlag ) {
+            overwriteFlag = Boolean.TRUE;
+        }
 
         StoredObject so = validator.setContentStream(context, repositoryId, objectId, overwriteFlag, extension);