B2017-205 added a NULL reference check for when we are opening a Word attachment
This commit is contained in:
parent
e92144b7ff
commit
8fd0230aa0
@ -945,7 +945,8 @@ namespace VEPROMS
|
|||||||
// the steptabribbon.
|
// the steptabribbon.
|
||||||
if (tc.ShuttingDown) return;
|
if (tc.ShuttingDown) return;
|
||||||
// B2017-202 update the RO tree in the step properties panel
|
// 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;
|
DisplayTabItem myDTI = tc.MyBar.Items[tc.MyBar.SelectedDockTab] as DisplayTabItem;
|
||||||
if (myDTI.MyDSOTabPanel != null)
|
if (myDTI.MyDSOTabPanel != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user