Modified type to prevent a null reference
This commit is contained in:
@@ -2408,7 +2408,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (par2 != null && par2.IsSection)
|
||||
{
|
||||
// check for 6.1 (parent) and 6.1.1.
|
||||
if (DisplayNumber.StartsWith((ActiveParent as SectionInfo).DisplayNumber.Trim())) return true;
|
||||
if (DisplayNumber.StartsWith((ActiveParent as ItemInfo).DisplayNumber.Trim())) return true;
|
||||
}
|
||||
if (!parNumber.Trim().EndsWith(".0")) return false;
|
||||
return (myNumber.Trim().StartsWith(parNumber.Trim().Substring(0, parNumber.Length - 1)));
|
||||
|
Reference in New Issue
Block a user