Author: gonzalo
Date: 2005-07-06 18:22:25 -0400 (Wed, 06 Jul 2005)
New Revision: 47019

Modified:
   trunk/mcs/tools/monop/ChangeLog
   trunk/mcs/tools/monop/outline.cs
Log:
2005-07-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * outline.cs: prevent nullref for non-public events.



Modified: trunk/mcs/tools/monop/ChangeLog
===================================================================
--- trunk/mcs/tools/monop/ChangeLog     2005-07-06 21:08:10 UTC (rev 47018)
+++ trunk/mcs/tools/monop/ChangeLog     2005-07-06 22:22:25 UTC (rev 47019)
@@ -1,3 +1,7 @@
+2005-07-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * outline.cs: prevent nullref for non-public events.
+
 2005-07-04  Ben Maurer  <[EMAIL PROTECTED]>
 
        * outline.cs: filter out interfaces in generic constraint clauses

Modified: trunk/mcs/tools/monop/outline.cs
===================================================================
--- trunk/mcs/tools/monop/outline.cs    2005-07-06 21:08:10 UTC (rev 47018)
+++ trunk/mcs/tools/monop/outline.cs    2005-07-06 22:22:25 UTC (rev 47019)
@@ -226,7 +226,7 @@
                
                foreach (EventInfo ei in Comparer.Sort (t.GetEvents 
(DefaultFlags))) {
                        
-                       if (! ShowMember (ei.GetAddMethod ()))
+                       if (! ShowMember (ei.GetAddMethod (true)))
                                continue;
                        
                        if (first)
@@ -281,7 +281,7 @@
 
        void OutlineEvent (EventInfo ei)
        {
-               MethodBase accessor = ei.GetAddMethod ();
+               MethodBase accessor = ei.GetAddMethod (true);
                
                o.Write (GetMethodVisibility (accessor));
                o.Write ("event ");

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

Reply via email to