diff --git a/ChangeLog b/ChangeLog index 7c0d9d8b4..7a90b6902 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-30 Mike Kestner + + * gdk/Event.cs : add some null guarding to GetEvent. + [Fixes #75642] + 2005-08-30 Mike Kestner * parser/gapi_pp.pl : ignore ifndef *_H_ lines like in 1.0.x. diff --git a/gdk/Event.cs b/gdk/Event.cs index 0f266bdc4..b67c56a75 100644 --- a/gdk/Event.cs +++ b/gdk/Event.cs @@ -79,6 +79,9 @@ namespace Gdk { public static Event GetEvent (IntPtr raw) { + if (raw == IntPtr.Zero) + return null; + switch (gtksharp_gdk_event_get_event_type (raw)) { case EventType.Expose: return new EventExpose (raw);