Author: lluis
Date: 2007-05-30 14:43:37 -0400 (Wed, 30 May 2007)
New Revision: 78252

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Documentation/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Documentation/MonoDevelop.Documentation/DocumentationService.cs
Log:
* MonoDevelop.Documentation/DocumentationService.cs: Don't crash is
  something goes wrong when getting help.

Modified: trunk/monodevelop/Core/src/MonoDevelop.Documentation/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Documentation/ChangeLog      
2007-05-30 18:40:53 UTC (rev 78251)
+++ trunk/monodevelop/Core/src/MonoDevelop.Documentation/ChangeLog      
2007-05-30 18:43:37 UTC (rev 78252)
@@ -1,3 +1,8 @@
+2007-05-30  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Documentation/DocumentationService.cs: Don't crash is
+         something goes wrong when getting help.
+
 2007-05-04  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Documentation.addin.xml: Migration to Mono.Addins.

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Documentation/MonoDevelop.Documentation/DocumentationService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Documentation/MonoDevelop.Documentation/DocumentationService.cs
      2007-05-30 18:40:53 UTC (rev 78251)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Documentation/MonoDevelop.Documentation/DocumentationService.cs
      2007-05-30 18:43:37 UTC (rev 78252)
@@ -32,7 +32,14 @@
                }
 
                public XmlDocument GetHelpXml (string type) {
-                       return helpTree.GetHelpXml ("T:" + type);
+                       try {
+                               return helpTree.GetHelpXml ("T:" + type);
+                       }
+                       catch (Exception ex) {
+                               // If something goes wrong, just report the 
error
+                               Runtime.LoggingService.Error (ex);
+                               return null;
+                       }
                }
 
                public string GetHelpUrl(ILanguageItem languageItem)

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

Reply via email to