fix an exception in the outline view
fix
Merge branch 'master' into devoncarew_outline_fix
review comments
Merge pull request #2637 from devoncarew/devoncarew_outline_fix

fix an exception in the outline view