* Timer.cs: Throw ArgumentNullException if the callback is null. svn path=/trunk/mcs/; revision=136912
@@ -1,3 +1,7 @@
+2009-06-25 Miguel de Icaza <[email protected]>
+
+ * Timer.cs: Throw ArgumentNullException if the callback is null.
2009-06-22 Bill Holmes <[email protected]>
* Thread.cs : Adding interrupt_on_stop field.
@@ -178,6 +178,9 @@ namespace System.Threading
void Init (TimerCallback callback, object state, long dueTime, long period)
{
+ if (callback == null)
+ throw new ArgumentNullException ("callback");
this.callback = callback;
this.state = state;