chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1683382 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Date Wed, 03 Jun 2015 16:11:19 GMT
Author: fmui
Date: Wed Jun  3 16:11:19 2015
New Revision: 1683382

URL: http://svn.apache.org/r1683382
Log:
TCK: more robust check

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java?rev=1683382&r1=1683381&r2=1683382&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Wed Jun  3 16:11:19 2015
@@ -1135,9 +1135,13 @@ public abstract class AbstractSessionTes
 
                 // catch creationDate and lastModificationDate
                 if (PropertyIds.CREATION_DATE.equals(propId)) {
-                    creationDate = (GregorianCalendar) prop.getFirstValue();
+                    if (prop != null) {
+                        creationDate = (GregorianCalendar) prop.getFirstValue();
+                    }
                 } else if (PropertyIds.LAST_MODIFICATION_DATE.equals(propId)) {
-                    lastModificationDate = (GregorianCalendar) prop.getFirstValue();
+                    if (prop != null) {
+                        lastModificationDate = (GregorianCalendar) prop.getFirstValue();
+                    }
                 }
             }
 



Mime
View raw message