[Monodevelop-patches-list] r463 - trunk/MonoDevelop/src/Main/Base/Services/ParserService

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 11 21:07:38 EST 2004


Author: benm
Date: 2004-01-11 21:07:38 -0500 (Sun, 11 Jan 2004)
New Revision: 463

Modified:
   trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
Log:
dont nullref

Modified: trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-01-12 02:06:52 UTC (rev 462)
+++ trunk/MonoDevelop/src/Main/Base/Services/ParserService/DefaultParserService.cs	2004-01-12 02:07:38 UTC (rev 463)
@@ -615,7 +615,10 @@
 		}
 		
 		public virtual IParser GetParser(string fileName)
-		{
+		{
+			if (fileName == null)
+				return null;
+			
 			if (Path.GetExtension(fileName).ToUpper() == ".CS") {
 				return parser[0];
 			}




More information about the Monodevelop-patches-list mailing list