ExternalXmlSummaryCache.GetSummary breaks with null types. This comes from invalid <see cref=""> tags I think, where it can't find the type.
Here's the fix (added a null check):
public string GetSummary(string memberID, Type declaringType) {
//extract member type (T:, P:, etc.)
string memberType = memberID.Substring(0, 2);
//the member id in the declaring assembly
string summary = "";
if (declaringType != null && declaringType.FullName != null)
{
string key = memberType + declaringType.FullName.Replace("+", ".") + "." + memberName;
//check the summaries cache first
summary = (string)summaries[key];
if (summary == null)
{
//lookup the xml document
GetXmlFor(declaringType);
//the summary should now be cached (if it exists!)
//so lets have another go at getting it...
summary = (string)summaries[key];
//if no summary was not found, create an blank one
if (summary == null)
{
//Debug.WriteLine("#NoSummary#\t" + key);
summary = "";
//cache the blank so we don't search for it again
summaries.Add(key, summary);
}
}
}
return "<summary>" + summary + "</summary>";
}
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Here's a proper version using a decent online source code repo, not SF
https://gist.github.com/900905
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"