Author: lluis
Date: 2006-04-18 04:30:42 -0400 (Tue, 18 Apr 2006)
New Revision: 59577

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs
Log:
2006-04-18 Lluis Sanchez Gual  <[EMAIL PROTECTED]> 

        * MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs:
          Fix null ref exception in Ububtu. Fix by Sebastian Dr?\195?\182ge.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2006-04-18 
07:26:33 UTC (rev 59576)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2006-04-18 
08:30:42 UTC (rev 59577)
@@ -1,3 +1,8 @@
+2006-04-18 Lluis Sanchez Gual  <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs:
+         Fix null ref exception in Ububtu. Fix by Sebastian Dröge.
+
 2006-04-17  Jacob Ilsø Christensen <[EMAIL PROTECTED]>
 
        * Base.glade: Fixed typo.

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs
       2006-04-18 07:26:33 UTC (rev 59576)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs
       2006-04-18 08:30:42 UTC (rev 59577)
@@ -50,6 +50,8 @@
                public bool CanAttachTo (IViewContent parent)
                {
                        string filename = parent.ContentName;
+                       if (filename == null)
+                               return false;
                        string mimetype = Gnome.Vfs.MimeType.GetMimeTypeForUri 
(filename);
                        if (mimetype == "text/html")
                                return true;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to