B2017-205 added a NULL reference check for when we are opening a Word attachment

This commit is contained in:
John Jenko 2017-09-11 19:55:20 +00:00
parent e92144b7ff
commit 8fd0230aa0

View File

@ -945,7 +945,8 @@ namespace VEPROMS
// the steptabribbon.
if (tc.ShuttingDown) return;
// B2017-202 update the RO tree in the step properties panel
if (tc.MyBar.SelectedDockTab > -1)
// B2017-205 - displayRO.MyROFST will be null if first thing opened is a Word section so added null check
if (tc.MyBar.SelectedDockTab > -1 && displayRO.MyROFST != null)
{
DisplayTabItem myDTI = tc.MyBar.Items[tc.MyBar.SelectedDockTab] as DisplayTabItem;
if (myDTI.MyDSOTabPanel != null)