|
Product(s): |
Bentley WaterGEMS, Bentley WaterCAD |
|
|
Version(s): |
08.11.06.58 |
|
|
Environment: |
N\A |
|
|
Area: |
Modeling |
|
Problem
When trying to filter the controls in the Controls manager by the control set, the below error message occurs.
Note: the "Object reference not set..." error is generic and can appear in a number of different situations. This article is specific to a case where this can occur when filtering controls in the controls manager.
03/28/2016 11:16:02.88 System.NullReferenceException: Object reference not set to an instance of an object.
at Haestad.Water.Forms.Support.Components.LogicalControls.ControlSetElementManager.CreateControlSetFields()
at Haestad.Water.Forms.Support.Components.LogicalControls.ControlSetElementManager.Load(HmIDCollection filteredIDs)
at Haestad.Water.Forms.Application.Components.LogicalControls.ControlSetEditorFormModel..ctor(IApplicationModel applicationModel, IDomainProject project, HmIDCollection filteredIDs)
at Haestad.Water.Forms.Application.Components.LogicalControls.LogicalControlTabPageUserControlModel.NewControlSetEditorFormModel()
at Haestad.Water.Forms.UserControls.Components.LogicalControls.LogicalControlTabPageUserControl.OpenControlSetEditor()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Solution
This is usually a model specific issue that has been addressed in the latest release of WaterGEMS and WaterCAD. Please download and install build 08.11.06.113 or later using information in this link.