You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2010/06/17 17:23:01 UTC

svn commit: r955635 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java

Author: fmui
Date: Thu Jun 17 15:23:01 2010
New Revision: 955635

URL: http://svn.apache.org/viewvc?rev=955635&view=rev
Log:
fixed CMIS-221: NPE

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

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java?rev=955635&r1=955634&r2=955635&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentDocumentImpl.java Thu Jun 17 15:23:01 2010
@@ -255,7 +255,7 @@ public class PersistentDocumentImpl exte
      * org.apache.opencmis.client.api.Document#getObjectOfLatestVersion(boolean)
      */
     public Document getObjectOfLatestVersion(boolean major) {
-        return getObjectOfLatestVersion(major, null);
+        return getObjectOfLatestVersion(major, getSession().getDefaultContext());
     }
 
     /*