Skip to content

unhandled exception looking at payee #155

@andreva7

Description

@andreva7

I created a new DB from scratch
Created a new acount
Added a transaction with payee name "hello 1"
Edited the transaction to make the payee "hello 2"
Switched to PAYEE view
Clicked on hello2, then clicked on hello 1 - below exception

2025-03-09 14:23:41.1845 APP INFORMATION: Launching MyMoney.Net
2025-03-09 14:24:28.0923 MAINWINDOW ERROR: Error Loading Database
System.ArgumentNullException: Value cannot be null. (Parameter 'Data Source')
at System.Data.Common.ADP.CheckArgumentNull(Object value, String parameterName)
at System.Data.SqlClient.SqlConnectionStringBuilder.SetValue(String keyword, String value)
at System.Data.SqlClient.SqlConnectionStringBuilder.set_DataSource(String value)
at Walkabout.Data.SqlServerDatabase.GetConnectionString(String server, String database, String userid, String password)
at Walkabout.Data.SqlServerDatabase.GetConnectionString(Boolean includeDatabase)
at Walkabout.Data.SqlServerDatabase.Create()
at Walkabout.MainWindow.LoadDatabase(String server, String databaseName, String userId, String password, String backupPath)
2025-03-09 14:25:20.7931 MAINWINDOW ERROR: Error Loading Database
System.ArgumentNullException: Value cannot be null. (Parameter 'Data Source')
at System.Data.Common.ADP.CheckArgumentNull(Object value, String parameterName)
at System.Data.SqlClient.SqlConnectionStringBuilder.SetValue(String keyword, String value)
at System.Data.SqlClient.SqlConnectionStringBuilder.set_DataSource(String value)
at Walkabout.Data.SqlServerDatabase.GetConnectionString(String server, String database, String userid, String password)
at Walkabout.Data.SqlServerDatabase.GetConnectionString(Boolean includeDatabase)
at Walkabout.Data.SqlServerDatabase.Create()
at Walkabout.MainWindow.LoadDatabase(String server, String databaseName, String userId, String password, String backupPath)
2025-03-09 14:27:14.8887 APP ERROR: Unhandled app exception
System.ArgumentNullException: Value cannot be null. (Parameter 'item')
at System.Windows.Controls.DataGrid.ScrollIntoView(Object item)
at Walkabout.Views.TransactionsView.set_SelectedRowIndex(Int32 value)
at Walkabout.Views.TransactionsView.Display(IList data, TransactionViewName name, String caption, Int64 selectedRowId)
at Walkabout.Views.TransactionsView.ViewTransactionsForPayee(Payee p, Int64 selectedRowId)
at Walkabout.MainWindow.ViewTransactionsByPayee(Payee p, Int64 selectedRowId)
at Walkabout.MainWindow.OnSelectionChangeFor_Payees(Object sender, EventArgs e)
at Walkabout.Views.Controls.PayeesControl.OnSelectionChanged(Object sender, SelectionChangedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
at System.Windows.Controls.Primitives.Selector.SetSelectedHelper(Object item, FrameworkElement UI, Boolean selected)
at System.Windows.Controls.Primitives.Selector.NotifyIsSelectedChanged(FrameworkElement container, Boolean selected, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.ListBoxItem.OnIsSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetCurrentValueInternal(DependencyProperty dp, Object value)
at System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton)
at System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.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 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions