Author: rjung
Date: Sun Nov 11 08:02:09 2007
New Revision: 593917

URL: http://svn.apache.org/viewvc?rev=593917&view=rev
Log:
We have this check already in two of three places, where
we use uw_map. Adding it to the third place.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593917&r1=593916&r2=593917&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:02:09 
2007
@@ -2111,7 +2111,17 @@
                        worker_name, r->uri);
         }
         else {
-            worker_name = map_uri_to_worker(xconf->uw_map, r->uri, NULL, 
xconf->log);
+            if (!xconf->uw_map) {
+                if (JK_IS_DEBUG_LEVEL(xconf->log))
+                    jk_log(xconf->log, JK_LOG_DEBUG,
+                           "missing uri map for %s:%s",
+                           xconf->s->server_hostname ? 
xconf->s->server_hostname : "_default_",
+                           r->uri);
+            }
+            else
+                worker_name = map_uri_to_worker(xconf->uw_map, r->uri,
+                                                NULL, xconf->log);
+
             if (worker_name == NULL && worker_env.num_of_workers) {
                 worker_name = worker_env.worker_list[0];
                 if (JK_IS_DEBUG_LEVEL(xconf->log))



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to