chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1718573 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Date Tue, 08 Dec 2015 11:46:30 GMT
Author: fmui
Date: Tue Dec  8 11:46:30 2015
New Revision: 1718573

URL: http://svn.apache.org/viewvc?rev=1718573&view=rev
Log:
Server: small bug fix in TypeDefinitionFactory

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java?rev=1718573&r1=1718572&r2=1718573&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Tue Dec  8 11:46:30 2015
@@ -20,6 +20,8 @@
  */
 package org.apache.chemistry.opencmis.server.support;
 
+import static org.apache.chemistry.opencmis.commons.impl.CollectionsHelper.isNotEmpty;
+
 import java.math.BigInteger;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -1314,7 +1316,7 @@ public final class TypeDefinitionFactory
         Map<String, String> attrs = (element.getAttributes() != null ? new HashMap<String,
String>(
                 element.getAttributes()) : null);
 
-        if (element.getChildren() == null) {
+        if (isNotEmpty(element.getChildren())) {
             return new CmisExtensionElementImpl(element.getNamespace(), element.getName(),
attrs, element.getValue());
         } else {
             List<CmisExtensionElement> children = new ArrayList<CmisExtensionElement>();



Mime
View raw message