Fix a potential null reference bug
This commit is contained in:
parent
e864276316
commit
15e0092699
@ -451,6 +451,7 @@ namespace EduNetworkBuilder
|
||||
if (tvClasswork.SelectedNode == null) return;
|
||||
|
||||
TreeNode Node = tvClasswork.SelectedNode;
|
||||
if (Node == null) return; //Break out to avoid exploding
|
||||
|
||||
if (Node.Tag is SchoolworkClass)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user