Author: mkrueger
Date: 2007-11-07 02:59:46 -0500 (Wed, 07 Nov 2007)
New Revision: 89070
Modified:
trunk/monodevelop/Extras/CSharpBinding/ChangeLog
trunk/monodevelop/Extras/CSharpBinding/Gui/CSharpTextEditorExtension.cs
Log:
* Gui/CSharpTextEditorExtension.cs: Fixed "Bug 339480 - Crash in XML
comment autocompletion".
Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-11-07 07:53:03 UTC
(rev 89069)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-11-07 07:59:46 UTC
(rev 89070)
@@ -1,3 +1,8 @@
+2007-11-07 Mike Krüger <[EMAIL PROTECTED]>
+
+ * Gui/CSharpTextEditorExtension.cs: Fixed "Bug 339480 - Crash in XML
comment
+ autocompletion".
+
2007-11-06 Zach Lute <[EMAIL PROTECTED]>
* Gui/CSharpTextEditorExtension.cs: Added missing null check to fix
Modified:
trunk/monodevelop/Extras/CSharpBinding/Gui/CSharpTextEditorExtension.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Gui/CSharpTextEditorExtension.cs
2007-11-07 07:53:03 UTC (rev 89069)
+++ trunk/monodevelop/Extras/CSharpBinding/Gui/CSharpTextEditorExtension.cs
2007-11-07 07:59:46 UTC (rev 89070)
@@ -42,7 +42,7 @@
int startLine = int.MaxValue;
IClass result = null;
foreach (IClass c in unit.Classes) {
- if (c.Region.BeginLine < startLine &&
c.Region.BeginLine > line) {
+ if (c.Region != null &&
c.Region.BeginLine < startLine && c.Region.BeginLine > line) {
startLine = c.Region.BeginLine;
result = c.ClassType ==
ClassType.Delegate ? c : null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches