Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/windoc
diff options
context:
space:
mode:
Diffstat (limited to 'windoc')
-rw-r--r--windoc/WinDoc/MainWindow.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/windoc/WinDoc/MainWindow.cs b/windoc/WinDoc/MainWindow.cs
index 2ce9653b..636bf516 100644
--- a/windoc/WinDoc/MainWindow.cs
+++ b/windoc/WinDoc/MainWindow.cs
@@ -247,6 +247,8 @@ namespace WinDoc
TreeNode treeNode;
if (!nodeToTreeNodeMap.TryGetValue (node, out treeNode)) {
+ if (node.Parent == null)
+ return false;
ShowNodeInTree (node.Parent);
if (!nodeToTreeNodeMap.TryGetValue (node.Parent, out treeNode))
return false;