You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/02/07 23:18:04 UTC

svn commit: r741974 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Author: lektran
Date: Sat Feb  7 22:18:04 2009
New Revision: 741974

URL: http://svn.apache.org/viewvc?rev=741974&view=rev
Log:
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();