else if (source.IsGroupFooter(i))
{
//currentGroup.hasFooter = true;
- currentGroup.Count++;
- currentGroup.GroupSize += groupFooterSize;
- if (colView.SizingStrategy == ItemSizingStrategy.MeasureAll)
- currentGroup.ItemPosition.Add(Current - currentGroup.GroupPosition);
- Current += groupFooterSize;
+ if (currentGroup != null)
+ {
+ currentGroup.Count++;
+ currentGroup.GroupSize += groupFooterSize;
+ if (colView.SizingStrategy == ItemSizingStrategy.MeasureAll)
+ currentGroup.ItemPosition.Add(Current - currentGroup.GroupPosition);
+ Current += groupFooterSize;
+ }
}
else
{
- currentGroup.Count++;
- currentGroup.GroupSize += StepCandidate;
- if (colView.SizingStrategy == ItemSizingStrategy.MeasureAll)
- currentGroup.ItemPosition.Add(Current - currentGroup.GroupPosition);
- Current += StepCandidate;
+ if (currentGroup != null)
+ {
+ currentGroup.Count++;
+ currentGroup.GroupSize += StepCandidate;
+ if (colView.SizingStrategy == ItemSizingStrategy.MeasureAll)
+ currentGroup.ItemPosition.Add(Current - currentGroup.GroupPosition);
+ Current += StepCandidate;
+ }
}
}
}
return;
}
- var xNameToElementsOfOther = nameScopeOfOther.NameToElement;
+ var xNameToElementsOfOther = nameScopeOfOther?.NameToElement;
var xNameToElements = nameScope.NameToElement;
if (null != xNameToElements)