mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Guard against None returned for the top-level parent node
This commit is contained in:
@@ -794,7 +794,9 @@ class Paragraph(Node):
|
||||
section = Section(element, None, self.kind)
|
||||
|
||||
root = self.GetTopLevelParent()
|
||||
root.AddSection(section)
|
||||
# TODO: Why is there sometimes not a top-level parent node?
|
||||
if root is not None:
|
||||
root.AddSection(section)
|
||||
|
||||
else:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user