forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r265607 - /forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java
Date Thu, 01 Sep 2005 00:51:44 GMT
Author: rgardler
Date: Wed Aug 31 17:51:38 2005
New Revision: 265607

URL: http://svn.apache.org/viewcvs?rev=265607&view=rev
Log:
sometimes there are no nodes, degrade gracefully

Modified:
    forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java

Modified: forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java?rev=265607&r1=265606&r2=265607&view=diff
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java (original)
+++ forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java Wed Aug 31
17:51:38 2005
@@ -117,6 +117,7 @@
         	}
     	}
 
+      if (m_nodes != null) {
         for (int i = 0; i < m_nodes.length; i++) {
             String location = m_nodes[i].locate(om, context);
             if (location != null) {
@@ -131,6 +132,7 @@
                 return location;
             }
         }
+      }
         return null;
     }
     



Mime
View raw message