msarilar / EDEngineer

An overlay to track Elite Dangerous blueprints progress in real time
MIT License
503 stars 173 forks source link

App crash when importing shopping list #534

Closed cyndane31 closed 4 years ago

cyndane31 commented 4 years ago

recieving the following error when importing shopping list. occurs both when clearing the current list and not.

System.NullReferenceException: Object reference not set to an instance of an object. at EDEngineer.Views.CommanderViewModel.LoadShoppingListItems(StringCollection shoppingListItems, List`1 blueprints) at EDEngineer.Views.CommanderViewModel.ImportShoppingList() at EDEngineer.Views.MainWindow.ImportShoppingList(Object sender, RoutedEventArgs e) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at EDEngineer.Views.MainWindow.DataGridOnPreviewMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnPreviewMouseDownThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

msarilar commented 4 years ago

could you upload the .shoppingList file you're trying to load?

cyndane31 commented 4 years ago

ax krait.shoppingList.txt corvette.shoppingList.txt

The app crashes upon loading either of these. I can't remember which one gave the specific error message I originally posted. I had to add the .txt in order for GitHub to allow the upload.

Sent via mobile


From: max notifications@github.com Sent: Monday, June 29, 2020 7:43:57 AM To: msarilar/EDEngineer EDEngineer@noreply.github.com Cc: nicholas nicholas@mikemil.com; Author author@noreply.github.com Subject: Re: [msarilar/EDEngineer] App crash when importing shopping list (#534)

could you upload the .shoppingList file you're trying to load?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/msarilar/EDEngineer/issues/534#issuecomment-651094406, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOIJMCIE5AR7EGCJ5EYVJ73RZCEA3ANCNFSM4OKK233Q.

msarilar commented 4 years ago

thanks for the report - that should be fixed after updating the app