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

Crash in editor #5

Closed
webmaster442 opened this issue Jul 21, 2020 · 1 comment
Closed

Crash in editor #5

webmaster442 opened this issue Jul 21, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@webmaster442
Copy link

Repro steps:

  1. Select save file
  2. Click on editor
  3. In inventory (any, doesn't matter which one) on an empty spot open context menu
  4. In context menu chose add/replace item
  5. Select new item dialog opens.
  6. Don't type anything into the search textbox and click on the magnifying glass icon, which performs the search.

Result: System.NullReferenceException

Stack trace:

   at: NomNom.ViewModel.ItemAddViewModel.IsItemInCategory(Item item) hely: C:\Users\cenge\source\repos\NomNom\NomNom\ViewModel\ItemAddViewModel.cs, line: 262
   at: System.Linq.Enumerable.<>c__DisplayClass6_0`1.<CombinePredicates>b__0(TSource x)
   at: System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at: System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at: System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at: MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action) hely: C:\projects\morelinq\MoreLinq\ForEach.cs, line: 37
   at: System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at: System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at: System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at: System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at: System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   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.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at: MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at: System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at: System.Windows.Controls.Button.OnClick()
   at: System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   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.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   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.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)
@cengelha cengelha added the bug Something isn't working label Jul 21, 2020
@cengelha cengelha self-assigned this Jul 21, 2020
@cengelha
Copy link
Member

Thanks! Fixed in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants