2009-06-10 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 10 Jun 2009 07:15:46 +0000 (07:15 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 10 Jun 2009 07:15:46 +0000 (07:15 -0000)
* ReplyChannelBase.cs : fix wrong null delegate check point.

svn path=/trunk/mcs/; revision=135824

mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ReplyChannelBase.cs

index 7eaf95a771f3a8d7e28608896a5a13566a1a6224..98b44e5fad10b7fd45ac323fd3a4884b79214e86 100755 (executable)
@@ -1,3 +1,7 @@
+2009-06-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ReplyChannelBase.cs : fix wrong null delegate check point.
+
 2009-06-10  Atsushi Enomoto  <atsushi@ximian.com>
 
        * HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
index ce05a131658d0379b070b4871a5967d55dfc26a1..0b286d6172cbb0757019cb92e1e5ba906c98ba68 100644 (file)
@@ -69,14 +69,14 @@ namespace System.ServiceModel.Channels
 
                public virtual bool EndTryReceiveRequest (IAsyncResult result)
                {
-                       if (try_recv_delegate == null)
-                               throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
                        RequestContext dummy;
                        return EndTryReceiveRequest (result, out dummy);
                }
 
                public virtual bool EndTryReceiveRequest (IAsyncResult result, out RequestContext context)
                {
+                       if (try_recv_delegate == null)
+                               throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
                        return try_recv_delegate.EndInvoke (out context, result);
                }