check for null reference when deleting a source step that has associated enhanced (found during fix for B2016-228)
B2016-228: when creating section/procedure enhanced items, set ‘Number’ B2016-228: when modifying source section or procedure, save ‘Number’ also B2016-198: User hold point no longer overwrites the ‘INIT/DATE’ signoff heading
This commit is contained in:
@@ -3077,6 +3077,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (sc.MyEnhancedDocuments != null && sc.MyEnhancedDocuments.Count == 1 && sc.MyEnhancedDocuments[0].Type == 0)
|
||||
{
|
||||
ItemInfo ii = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID);
|
||||
if (ii == null) return false; // when deleting a source step, this was causing a crash (null ii)
|
||||
return (ii.MyContent.DTS > MyProcedure.ChangeBarDate);
|
||||
}
|
||||
// if there is no override & return whether there was a change to the text.
|
||||
|
Reference in New Issue
Block a user