Author: lluis
Date: 2006-04-03 08:19:09 -0400 (Mon, 03 Apr 2006)
New Revision: 58939

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs
Log:
2006-04-03 Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * MonoDevelop.Projects.Parser/DefaultParserService.cs: Added
          null check for BodyRegion (delegates don't have it).



Modified: trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog   2006-04-03 
12:17:10 UTC (rev 58938)
+++ trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog   2006-04-03 
12:19:09 UTC (rev 58939)
@@ -1,3 +1,8 @@
+2006-04-03 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Projects.Parser/DefaultParserService.cs: Added
+         null check for BodyRegion (delegates don't have it).
+
 2006-03-31 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Projects.Parser/DefaultParserService.cs: Added

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs
 2006-04-03 12:17:10 UTC (rev 58938)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs
 2006-04-03 12:19:09 UTC (rev 58939)
@@ -307,7 +307,7 @@
                                        IClass c =  GetEnclosingClass (line, 
col, cls.InnerClasses);
                                        if (c != null) return c;
                                }
-                               if (cls.Region.IsInside (line, col) || 
cls.BodyRegion.IsInside (line, col))
+                               if (cls.Region.IsInside (line, col) || 
(cls.BodyRegion != null && cls.BodyRegion.IsInside (line, col)))
                                        return cls;
                        }
                        return null;

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

Reply via email to