Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application fails to display validation message box for args #58

Closed
maraf opened this issue Dec 3, 2018 · 0 comments
Closed

Application fails to display validation message box for args #58

maraf opened this issue Dec 3, 2018 · 0 comments
Assignees
Labels
bug Something isn't working ui Changes to the PackageManager UI
Milestone

Comments

@maraf
Copy link
Owner

maraf commented Dec 3, 2018

A current implementation of Navigator uses Application.Current.MainWindow to show message box, but this property can be null when validating input args.

Exception Info: System.ArgumentNullException
   at System.Windows.Interop.WindowInteropHelper..ctor(System.Windows.Window)
   at System.Windows.MessageBox.Show(System.Windows.Window, System.String, System.String, System.Windows.MessageBoxButton, System.Windows.MessageBoxImage)
   at PackageManager.Services.Navigator.Confirm(System.String, System.String, MessageType)
   at PackageManager.Exceptions.MessageExceptionHandler.Handle(Neptuo.Exceptions.Handlers.IExceptionHandlerContext`1<System.Exception>)
   at Neptuo.Exceptions.Handlers.ExceptionHandlerBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Handle(System.Exception, Neptuo.Collections.Specialized.IKeyValueCollection)
   at Neptuo.Exceptions.Handlers.ExceptionHandlerBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Neptuo.Exceptions.Handlers.IExceptionHandler<Neptuo.Exceptions.Handlers.IExceptionHandlerContext>.Handle(Neptuo.Exceptions.Handlers.IExceptionHandlerContext)
   at Neptuo.Exceptions.Handlers.ExceptionHandlerBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Handle(System.Exception, Neptuo.Collections.Specialized.IKeyValueCollection)
   at Neptuo.Exceptions.Handlers.ExceptionHandlerBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Neptuo.Exceptions.Handlers.IExceptionHandler.Handle(System.Exception)
   at PackageManager.App.OnDispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
   at System.Windows.Threading.Dispatcher.CatchException(System.Exception)
@maraf maraf added bug Something isn't working ui Changes to the PackageManager UI labels Dec 3, 2018
@maraf maraf added this to the v0.8.0 milestone Dec 3, 2018
@maraf maraf modified the milestones: v0.8.0, v0.7.2 Dec 4, 2018
@maraf maraf self-assigned this Dec 4, 2018
@maraf maraf closed this as completed Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui Changes to the PackageManager UI
Projects
None yet
Development

No branches or pull requests

1 participant