Permalink
Browse files

[windoc] Do not try to show a null node in the tree

  • Loading branch information...
1 parent 37cfa6a commit 323dcafaa2253fba3f36088ec3fdad1fa104451d @garuma garuma committed May 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 windoc/WinDoc/MainWindow.cs
@@ -241,6 +241,9 @@ void LoadHtml (string html)
bool ShowNodeInTree (Node node)
{
+ if (node == null)
+ return false;
+
TreeNode treeNode;
if (!nodeToTreeNodeMap.TryGetValue (node, out treeNode)) {

0 comments on commit 323dcaf

Please sign in to comment.