[Monodevelop-patches-list] r1383 - in trunk/MonoDevelop/src/Main/Base: . Services/ParserService

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Apr 4 20:59:55 EDT 2004


Author: tberman
Date: 2004-04-04 20:59:54 -0400 (Sun, 04 Apr 2004)
New Revision: 1383

Modified:
   trunk/MonoDevelop/src/Main/Base/ChangeLog
   trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
Log:
fix


Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-04-04 19:53:41 UTC (rev 1382)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-04-05 00:59:54 UTC (rev 1383)
@@ -1,3 +1,7 @@
+2004-04-04  Todd Berman  <tberman at sevenl.net>
+
+	* Services/ParserService/DefaultParserService.cs: fix nullref
+
 2004-04-04  John Luke  <jluke at cfl.rr.com>
 
 	* Gui/Pads/FileScout.cs: use Gtk.Stock.Open for the icon

Modified: trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-04-04 19:53:41 UTC (rev 1382)
+++ trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-04-05 00:59:54 UTC (rev 1383)
@@ -375,11 +375,13 @@
 								bool updated = false;
 								lock (parsings) {
 									string text = editable.Text;
+									if (text != null) {
 									
-									if (lastUpdateSize[fileName] == null || (int)lastUpdateSize[fileName] != text.GetHashCode()) {
-										parseInformation = ParseFile(fileName, text);
-										lastUpdateSize[fileName] = text.GetHashCode();
-										updated = true;
+										if (lastUpdateSize[fileName] == null || (int)lastUpdateSize[fileName] != text.GetHashCode()) {
+											parseInformation = ParseFile(fileName, text);
+											lastUpdateSize[fileName] = text.GetHashCode();
+											updated = true;
+										}
 									} 
 								}
 								if (updated) {




More information about the Monodevelop-patches-list mailing list