Error message when computing model with open profile: Object reference not set to an instance of an object

Product(s): SewerGEMS, CivilStorm, StormCAD, SewerCAD
Version(s): CONNECT Edition Update 3
Area: Output and Reporting


When computing a model with a profile opening the following error message is generated:

System.NullReferenceException: Object reference not set to an instance of an object.

at Haestad.StormSewer.Application.Profiling.ProfileViewerFormModel.HandleScenarioChanged(Object sender, ScenarioChangedEventArgs e)
at Haestad.Framework.Support.ScenarioManagerChangeHandler.Invoke(Object sender, ScenarioChangedEventArgs e)
at Haestad.Framework.Support.ScenarioEventChannel.OnScenarioChanged(Object aobject, ScenarioChangeType changetype, Int32 scenarioid, Int32 previousScenarioId)
at Haestad.Framework.Support.ScenarioEventChannel.NotifyScenarioChanged(Object aoSender, ScenarioChangeType changetype, Int32 scenarioid)



This issue occurs if the profile is open when you recompute a model. While you may be able to workaround this by closing the profile first, a patch has been created to fix this issue in build Later versions of the storm-sewer products will have this issue fixed already. To get the patch, please contact the Technical Support Group.

  • Created by Bentley Colleague
  • When: Tue, Sep 29 2020 2:04 PM
  • Revisions: 1
  • Comments: 0