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,6 +1905,7 @@ namespace Volian.Controls.Library
} }
protected void ToggleContinuousActionSummary() protected void ToggleContinuousActionSummary()
{ {
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 MyStepPropertiesPanel.ToggleContActSummary(); // update the checkbox on the Step Properties panel
if (!MyStepRTB.ContainsFocus) if (!MyStepRTB.ContainsFocus)
MyStepRTB.Focus(); MyStepRTB.Focus();