B2020-124: Fix crash on approval when working draft is not linked to an RO location

This commit is contained in:
Kathy Ruffing 2020-10-15 12:39:19 +00:00
parent 89a83c7064
commit 1f559a0d12

View File

@ -935,6 +935,7 @@ namespace VEPROMS.CSLA.Library
// DocVersionInfo dbi = proc.ActiveParent as DocVersionInfo;
DocVersionInfo dvi = proc.MyDocVersion;
//_MyTimer.ActiveProcess = "Get MyROFst";
if (dvi.DocVersionAssociations == null || dvi.DocVersionAssociations.Count == 0) return; // B2020-124: don't crash if docversion doesn't have rofst
ROFstInfo rofst = ROFstInfo.GetJustROFst(dvi.DocVersionAssociations[0].ROFstID);
//_MyTimer.ActiveProcess = "Get ROFst Lookup";
//rofst.docVer = dvi;