+2010-05-12 Marek Habersack <mhabersack@novell.com>
+
+ * HttpServerUtility.cs: Execute checks whether
+ IAsyncResult.AsyncWaitHandle is not null before attempting to use
+ it. Fixes bug #604502
+
2010-05-06 Marek Habersack <mhabersack@novell.com>
* PreApplicationStartMethodAttribute.cs: added. New 4.0 type.
using System.Collections.Specialized;
using System.Security.Permissions;
using System.Text;
+using System.Threading;
using System.Web.Configuration;
using System.Web.SessionState;
} else {
IHttpAsyncHandler asyncHandler = (IHttpAsyncHandler) handler;
IAsyncResult ar = asyncHandler.BeginProcessRequest (context, null, null);
- ar.AsyncWaitHandle.WaitOne ();
+ WaitHandle asyncWaitHandle = ar != null ? ar.AsyncWaitHandle : null;
+ if (asyncWaitHandle != null)
+ asyncWaitHandle.WaitOne ();
asyncHandler.EndProcessRequest (ar);
}
} finally {