[Monodevelop-patches-list] r1871 - trunk/MonoDevelop/Core/src/Main/StartUp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Jul 1 13:28:50 EDT 2004
Author: tberman
Date: 2004-07-01 13:28:49 -0400 (Thu, 01 Jul 2004)
New Revision: 1871
Modified:
trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
Log:
fix bug with 0 length filenames
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-07-01 16:47:17 UTC (rev 1870)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-07-01 17:28:49 UTC (rev 1871)
@@ -1,3 +1,7 @@
+2004-07-01 Todd Berman <tberman at off.net>
+
+ * MonoDevelopMain.cs: Dont attempt to load 0 length filenames.
+
2004-06-28 Todd Berman <tberman at off.net>
* MonoDevelopMain.cs: add Exit (0); and poof, issues are gone.
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-07-01 16:47:17 UTC (rev 1870)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-07-01 17:28:49 UTC (rev 1871)
@@ -178,6 +178,8 @@
{
lock (fileToOpen) {
string file = fileToOpen;
+ if (file == null || file.Length == 0)
+ return false;
switch (System.IO.Path.GetExtension(file).ToUpper()) {
case ".CMBX":
case ".PRJX":
More information about the Monodevelop-patches-list
mailing list