B2023-026 Added null reference check when importing a Word document for use as a library document
This commit is contained in:
parent
740c24b8c0
commit
ab4b4e8b6d
@ -1307,7 +1307,9 @@ namespace VEPROMS
|
||||
if (myDTI.MyDSOTabPanel != null)
|
||||
{
|
||||
DSOTabPanel myDTP = myDTI.MyDSOTabPanel;
|
||||
|
||||
// B2023-026 needed to check for a null itemInfo
|
||||
if (myDTP.MyDisplayTabItem.MyItemInfo != null)
|
||||
{
|
||||
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.
|
||||
@ -1317,6 +1319,7 @@ namespace VEPROMS
|
||||
SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user