diff --git a/TLM/TLM/UI/TrafficManagerTool.cs b/TLM/TLM/UI/TrafficManagerTool.cs index d67c44318..6d9042d83 100644 --- a/TLM/TLM/UI/TrafficManagerTool.cs +++ b/TLM/TLM/UI/TrafficManagerTool.cs @@ -264,9 +264,11 @@ public void SetToolMode(ToolMode mode) { // Overridden to disable base class behavior protected override void OnEnable() { - Log._Debug("TrafficManagerTool.OnEnable(): Performing cleanup"); - foreach (KeyValuePair e in subTools_) { - e.Value.Cleanup(); + if (subTools_ != null) { + Log._Debug("TrafficManagerTool.OnEnable(): Performing cleanup"); + foreach (KeyValuePair e in subTools_) { + e.Value.Cleanup(); + } } }