Author: sichen
Date: Tue May 22 15:22:14 2007
New Revision: 540773
URL:
http://svn.apache.org/viewvc?view=rev&rev=540773Log:
Fix for OFBIZ-1010 where a URI like ~pcategory/LookupPartyName would crash.
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?view=diff&rev=540773&r1=540772&r2=540773==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Tue May 22 15:22:14 2007
@@ -525,7 +525,7 @@
if (i == 1) {
nextPage = element;
} else {
- nextPage = nextPage + "/" + element;
+ nextPage = (nextPage == null ? element : nextPage + "/" + element);
}
}
}