Check for a null reference when the <Shift><F7> is used to toggle inclusion on the Continuous Action Summary

This commit is contained in:
John Jenko 2016-11-10 20:14:17 +00:00
parent ac126563df
commit 2229ac2908

View File

@ -1905,7 +1905,8 @@ namespace Volian.Controls.Library
}
protected void ToggleContinuousActionSummary()
{
MyStepPropertiesPanel.ToggleContActSummary(); // update the checkbox on the Step Properties panel
if (MyStepPropertiesPanel != null) // bug fix B2016-256 check for a null reference incase we are not on a step element
MyStepPropertiesPanel.ToggleContActSummary(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus();
}