[Pkg-mono-svn-commits] [mono] 01/01: [monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation. (cherry picked from commit ba222d4eb939ef097dd2b77b1fea5c3b8a60b310)

Jo Shields directhex at alioth.debian.org
Wed Oct 9 18:57:38 UTC 2013


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to branch master-patches/monodoc_support_fields_that_match_operator_naming_convention
in repository mono.

commit 8b43de0e1ea5a0a397d1ce47ed10a77697d32f34
Author: Jo Shields <directhex at apebox.org>
Date:   Wed Oct 9 15:31:23 2013 +0200

    [monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation.
    (cherry picked from commit ba222d4eb939ef097dd2b77b1fea5c3b8a60b310)
---
 mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs b/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
index e6e7e61..0dba443 100644
--- a/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
+++ b/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
@@ -466,10 +466,11 @@ namespace Monodoc.Providers
 				break;
 			// binary operators: overloading is possible [ECMA-335 §10.3.2]
 			default:
-				memberSignature =
-					nicename + "("
-					+ string.Join (",", member.Element ("Parameters").Elements ("Parameter").Select (p => (string)p.Attribute ("Type")))
-					+ ")";
+				if (member.Element ("Parameters") != null)
+					memberSignature =
+						nicename + "("
+						+ string.Join (",", member.Element ("Parameters").Elements ("Parameter").Select (p => (string)p.Attribute ("Type")))
+						+ ")";
 				break;
 			}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git



More information about the Pkg-mono-svn-commits mailing list