[Monodevelop-patches-list] r1602 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon May 17 02:39:13 EDT 2004
Author: tberman
Date: 2004-05-17 02:39:13 -0400 (Mon, 17 May 2004)
New Revision: 1602
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
potential nullref fix
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-05-16 20:23:29 UTC (rev 1601)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-05-17 06:39:13 UTC (rev 1602)
@@ -1,3 +1,7 @@
+2004-05-17 Todd Berman <tberman at sevenl.net>
+
+ * Gui/SourceEditorView.cs: workaround potential nullref.
+
2004-05-16 Todd Berman <tberman at sevenl.net>
* Gui/SourceEditorView.cs: Implement beta monodoc resolving.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-05-16 20:23:29 UTC (rev 1601)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-05-17 06:39:13 UTC (rev 1602)
@@ -161,6 +161,9 @@
char triggerChar = '\0';
TextIter triggerIter = TextIter.Zero;
do {
+ if (iter.Char == null || iter.Char.Length == 0) {
+ break;
+ }
switch (iter.Char[0]) {
case ' ':
case '\t':
@@ -171,6 +174,7 @@
triggerChar = iter.Char[0];
break;
}
+ Console.WriteLine ("Char[0] is: |{0}|", iter.Char[0]);
if (!triggerIter.Equals (TextIter.Zero))
break;
iter.BackwardChar ();
More information about the Monodevelop-patches-list
mailing list