chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1588002 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryDiscoveryServiceImpl.java
Date Wed, 16 Apr 2014 17:59:34 GMT
Author: jens
Date: Wed Apr 16 17:59:33 2014
New Revision: 1588002

URL: http://svn.apache.org/r1588002
Log:
InMemory: fix NPE in getCOntentChanges

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryDiscoveryServiceImpl.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/InMemoryDiscoveryServiceImpl.java?rev=1588002&r1=1588001&r2=1588002&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryDiscoveryServiceImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryDiscoveryServiceImpl.java
Wed Apr 16 17:59:33 2014
@@ -81,6 +81,9 @@ public class InMemoryDiscoveryServiceImp
         long timestamp = System.currentTimeMillis() - 60 * 1000;
         // convert ObjectInFolderContainerList to objectList
         List<ObjectData> lod = new ArrayList<ObjectData>();
+        if (null == maxItems) {
+            maxItems = BigInteger.valueOf(ITEMS_AVAILABLE);
+        }
         int last = Math.min(ITEMS_AVAILABLE, token + maxItems.intValue());
 
         for (int i = token; i < last; i++) {



Mime
View raw message