fix an exception in the outline view
Merge pull request #2544 from devoncarew/devoncarew_fix_outline_ex

fix an exception in the outline view