B2020-071 Added Null reference check logic for when a procedure set does not have a RO folder associated to it.
This commit is contained in:
parent
462315f282
commit
41aac0b063
@ -1033,6 +1033,12 @@ namespace VEPROMS
|
|||||||
if (myDTI.MyDSOTabPanel != null)
|
if (myDTI.MyDSOTabPanel != null)
|
||||||
{
|
{
|
||||||
DSOTabPanel myDTP = myDTI.MyDSOTabPanel;
|
DSOTabPanel myDTP = myDTI.MyDSOTabPanel;
|
||||||
|
if (myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations == null)
|
||||||
|
{
|
||||||
|
SelectedROFst = null; // B2020-071 ROs are not associated with this procedure set. Set value to null so that PROMS does not try to generate the RO tree in Step Properties.
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||||
if (_LastROFSTID != SelectedROFst.ROFstID) // B2017-240 Only refresh when the ROFSTID is different
|
if (_LastROFSTID != SelectedROFst.ROFstID) // B2017-240 Only refresh when the ROFSTID is different
|
||||||
{
|
{
|
||||||
@ -1042,6 +1048,7 @@ namespace VEPROMS
|
|||||||
displayRO.RefreshRoTree();
|
displayRO.RefreshRoTree();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (tc.MyEditItem != null && displayRO.MyROFST != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID)
|
else if (tc.MyEditItem != null && displayRO.MyROFST != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID)
|
||||||
{
|
{
|
||||||
SelectedROFst = tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
SelectedROFst = tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user