B2018-032 - Add logic to eliminate crashing if figures are not available for an RO.FST
This commit is contained in:
parent
f2d85dfd79
commit
c23fcb9435
@ -521,6 +521,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (!orig.ContainsKey(key)) orig.Add(key, fi.ImageID);
|
if (!orig.ContainsKey(key)) orig.Add(key, fi.ImageID);
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
|
if (rofst.ROFstFigures == null) return null;// B2018-032 Don't crash if there are no figures
|
||||||
foreach (FigureInfo fi in rofst.ROFstFigures)
|
foreach (FigureInfo fi in rofst.ROFstFigures)
|
||||||
{
|
{
|
||||||
string key = fi.ROImage_FileName ?? fi.MyROImage.FileName;
|
string key = fi.ROImage_FileName ?? fi.MyROImage.FileName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user