×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon Critical Bug

  • Daishoq
  • Daishoq's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 1 month ago #11507 by Daishoq
Critical Bug was created by Daishoq
Hi,
I switched to 17.2.6.2 version, but encounter to a critical bug. I get the following error everywhere popup screen

Object reference not set to an instance of an object.

at Xpand.Persistent.Base.General.Controllers.NavigationContainerWinController.Application_CustomizeTemplate(Object sender, CustomizeTemplateEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at DevExpress.ExpressApp.XafApplication.OnCustomizeTemplate(IFrameTemplate frameTemplate, String templateContextName)
at DevExpress.ExpressApp.Win.WinApplication.OnCustomizeTemplate(IFrameTemplate frameTemplate, String templateContextName)
at DevExpress.ExpressApp.XafApplication.CreateTemplate(String templateContextName)
at DevExpress.ExpressApp.Frame.CreateTemplate()
at DevExpress.ExpressApp.Win.WinWindow..ctor(XafApplication application, TemplateContext context, ICollection`1 controllers, Boolean isMain, Boolean activateControllersImmediately)
at Xpand.ExpressApp.Win.XpandWinApplication.CreateWindowCore(TemplateContext context, ICollection`1 controllers, Boolean isMain, Boolean activateControllersImmediatelly)
at DevExpress.ExpressApp.XafApplication.CreateWindow(TemplateContext context, ICollection`1 controllers, Boolean createAllControllers, Boolean isMain, View view)
at DevExpress.ExpressApp.XafApplication.CreateWindow(TemplateContext context, ICollection`1 controllers, Boolean isMain)
at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateWindow(ShowViewParameters parameters, ShowViewSource showViewSource, Boolean isMain)
at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInInspector(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInNewWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.ShowInMultipleWindowsStrategy.ShowViewInNewWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.ShowInMultipleWindowsStrategy.ShowDetailView(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.ShowInMultipleWindowsStrategy.ShowViewByType(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.ShowInMultipleWindowsStrategy.ShowViewFromCommonView(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.ShowViewStrategyBase.ShowViewCore(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.ShowViewStrategyBase.ShowView(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Frame.ProcessActionCreatedView(ActionBaseEventArgs e)
at DevExpress.ExpressApp.Win.WinWindow.ProcessActionCreatedView(ActionBaseEventArgs e)
at DevExpress.ExpressApp.Frame.ShowViewAction_ProcessCreatedView(Object sender, ActionBaseEventArgs e)
at DevExpress.ExpressApp.Actions.ActionBase.OnProcessCreatedView(ActionBaseEventArgs e)
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
More
1 year 1 month ago #11508 by Tolis
Replied by Tolis on topic Critical Bug
Hi

By looking at the method that throws
github.com/expand/eXpand/blob/da579a9796...ontroller.cs#L67-L71

we can only guess that the Application instance is null, this of course should never happen and must be a side effect of something else. However I can modify the method to use the sender argument instead of the Application controller property in next minor.

For now can you use the next call in your Program.cs so you can continue and see if everything else work?

XpandModuleBase.DisableControllers(typeof(NavigationContainerWinController));

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
Moderators: expand
Time to create page: 0.192 seconds