[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
Thu Oct 17 22:20:31 UTC 2013


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

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

commit 7058edae663c81af318bea821a345f71a5ce23cb
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 360889f..7f7da5e 100644
--- a/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
+++ b/mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
@@ -541,10 +541,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