B2018-032 - Add logic to eliminate crashing if figures are not available for an RO.FST

This commit is contained in:
Rich 2018-02-21 22:47:25 +00:00
parent f2d85dfd79
commit c23fcb9435

View File

@ -521,6 +521,7 @@ namespace VEPROMS.CSLA.Library
if (!orig.ContainsKey(key)) orig.Add(key, fi.ImageID);
}
i = 0;
if (rofst.ROFstFigures == null) return null;// B2018-032 Don't crash if there are no figures
foreach (FigureInfo fi in rofst.ROFstFigures)
{
string key = fi.ROImage_FileName ?? fi.MyROImage.FileName;