Author: gonzalo
Date: 2005-04-21 04:25:21 -0400 (Thu, 21 Apr 2005)
New Revision: 43382

Modified:
   trunk/mcs/class/System.Web/System.Web/QueueManager.cs
Log:
null check

Modified: trunk/mcs/class/System.Web/System.Web/QueueManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/QueueManager.cs       2005-04-21 
07:44:04 UTC (rev 43381)
+++ trunk/mcs/class/System.Web/System.Web/QueueManager.cs       2005-04-21 
08:25:21 UTC (rev 43382)
@@ -60,7 +60,7 @@
                                
                        int threads, cports;
                        ThreadPool.GetAvailableThreads (out threads, out 
cports);
-                       bool local = (req.GetLocalAddress () == "127.0.0.1");
+                       bool local = (req != null && req.GetLocalAddress () == 
"127.0.0.1");
                        return (threads > minFree) || (local && threads > 
minLocalFree);
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to