Author: lektran
Date: Sat Feb 7 22:18:04 2009
New Revision: 741974
URL:
http://svn.apache.org/viewvc?rev=741974&view=revLog:
Fix NPE reported by Sneha Chaturvedi on the user mailing list
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?rev=741974&r1=741973&r2=741974&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Sat Feb 7 22:18:04 2009
@@ -815,7 +815,10 @@
String controlPath = (String) request.getAttribute("_CONTROL_PATH_");
String requestUri = RequestHandler.getRequestUri(url);
- ConfigXMLReader.RequestMap requestMap = controllerConfig.requestMapMap.get(requestUri);
+ ConfigXMLReader.RequestMap requestMap = null;
+ if (requestUri != null) {
+ requestMap = controllerConfig.requestMapMap.get(requestUri);
+ }
StringBuilder newURL = new StringBuilder();