Added a check for a Null reference (B2013-198 / B2013-192) which fixes an bug inserting a new sub-section.
This commit is contained in:
parent
0085a023de
commit
206c73abcb
@ -1691,6 +1691,7 @@ namespace Volian.Controls.Library
|
|||||||
else if (newtype == MenuSelections.Section) // Insert subsection at end of parents section list
|
else if (newtype == MenuSelections.Section) // Insert subsection at end of parents section list
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
|
if (_LastProcedureInfo != null)
|
||||||
if (!MySessionInfo.CanCheckOutItem(_LastProcedureInfo.ItemID, CheckOutType.Procedure, ref message))
|
if (!MySessionInfo.CanCheckOutItem(_LastProcedureInfo.ItemID, CheckOutType.Procedure, ref message))
|
||||||
{
|
{
|
||||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user