You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/09/01 02:51:44 UTC
svn commit: r265607 -
/forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocatorNode.java
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;
}