Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Xamarin.Android.Tools.JavadocImporter/DocumentSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ abstract class JavaDocDocumentSection : DocumentSection

public JavaDocDocumentSection (XElement sectionNode)
{
if (sectionNode == null)
return; // Any derived classes might pass null element here. Since we cannot reject it here, we ignore the entire section.

section_node = sectionNode;
foreach (XElement pp in section_node.XPathSelectElements (".//dl/dt")) {
var b = pp.XPathSelectElement (SectionNameWrapperTag);
Expand Down Expand Up @@ -428,6 +431,8 @@ public override string SectionNameWrapperTag {

public override IEnumerable<XNode> GetSummaryNodes ()
{
if (section_node == null)
return Enumerable.Empty<XNode> ();
var sumDL = section_node.Elements (XName.Get ("dd")).FirstOrDefault ();
return sumDL == null ? Enumerable.Empty<XNode> () :
sumDL.Nodes ().TakeWhile (n => !(n is XElement && ((XElement)n).Name.LocalName != "dl"))
Expand Down