diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-16 15:34:28 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-16 15:34:28 +0400 |
commit | 5180b54892b63649b868ad824e91f605a377887f (patch) | |
tree | 860fc095fceb16c339197b0fc91156c79b37bc64 /main/src/addins/MonoDevelop.AssemblyBrowser | |
parent | 0173e0690c7e24bfe072e911c5295c7979767450 (diff) |
[AssemblyBrowser] Secured Monodoc call.
Required for invalid monodocs.
Diffstat (limited to 'main/src/addins/MonoDevelop.AssemblyBrowser')
-rw-r--r-- | main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs index 500bb3312f..3496297500 100644 --- a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs +++ b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs @@ -907,16 +907,19 @@ namespace MonoDevelop.AssemblyBrowser IMember member = nav.DataItem as IMember; string documentation = GettextCatalog.GetString ("No documentation available."); if (member != null) { - XmlNode node = member.GetMonodocDocumentation (); - if (node != null) { - documentation = TransformDocumentation (node) ?? documentation; - /* - StringWriter writer = new StringWriter (); - XmlTextWriter w = new XmlTextWriter (writer); - node.WriteTo (w); - System.Console.WriteLine ("---------------------------"); - System.Console.WriteLine (writer);*/ - + try { + XmlNode node = member.GetMonodocDocumentation (); + if (node != null) { + documentation = TransformDocumentation (node) ?? documentation; + /* + StringWriter writer = new StringWriter (); + XmlTextWriter w = new XmlTextWriter (writer); + node.WriteTo (w); + System.Console.WriteLine ("---------------------------"); + System.Console.WriteLine (writer);*/ + + } + } catch (Exception) { } } this.documentationLabel.Markup = documentation; |