directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r267310 - /directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java
Date Fri, 02 Sep 2005 21:39:48 GMT
Author: elecharny
Date: Fri Sep  2 14:39:45 2005
New Revision: 267310

URL: http://svn.apache.org/viewcvs?rev=267310&view=rev
Log:
Switched to the newer file from shared/ldap

Modified:
    directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java

Modified: directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java?rev=267310&r1=267309&r2=267310&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/filter/BranchNode.java
Fri Sep  2 14:39:45 2005
@@ -158,7 +158,12 @@
      */
     public ExprNode getChild()
     {
-        return ( ExprNode ) m_children.get( 0 ) ;
+        if ( m_children.size() > 0 )
+        {
+            return ( ExprNode ) m_children.get( 0 ) ;
+        }
+
+        return null;
     }
 
 



Mime
View raw message