B2020-086 – Added a NULL reference check for when the MRU (Most Recently Used) contains a database ID that was disposed.
This commit is contained in:
parent
59a88c4a89
commit
e4d6e222de
@ -2862,7 +2862,8 @@ namespace VEPROMS.CSLA.Library
|
||||
//if (str.Contains(@"<S\u8209?ID>"))
|
||||
// str = str.Replace(@"<S\u8209?ID>", MyDocVersion.DocVersionConfig.Unit_ID);
|
||||
str = ConvertToDisplayText(str);
|
||||
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number); // B2017-019 - process "<u>" in section number
|
||||
if (MyDocVersion != null) // B2020-086 check for null doc version - happens if item we are trying to open is no longer there (disconnected)
|
||||
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number); // B2017-019 - process "<u>" in section number
|
||||
return str;
|
||||
}
|
||||
//get { return ConvertToDisplayText(MyContent.Number); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user