Denaro: System.ArgumentException: The value cannot be an empty string

  1. Open Denaro.
  2. At the welcome screen click on one of the recent accounts.
$ flatpak run org.nickvision.money

(process:2): Adwaita-WARNING **: 11:44:52.233: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

(NickvisionMoney.GNOME:2): Gtk-CRITICAL **: 11:44:52.715: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(NickvisionMoney.GNOME:2): Gtk-CRITICAL **: 11:44:52.715: gtk_widget_add_css_class: assertion 'GTK_IS_WIDGET (widget)' failed
Unhandled exception. System.ArgumentException: The value cannot be an empty string. (Parameter 'value')
   at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
   at System.Globalization.NumberFormatInfo.set_CurrencyDecimalSeparator(String value)
   at NickvisionMoney.Shared.Controllers.AccountViewController.get_CultureForNumberString() in /run/build/org.nickvision.money/NickvisionMoney.Shared/Controllers/AccountViewController.cs:line 216
   at NickvisionMoney.GNOME.Views.AccountView.CreateGroupRow(IntPtr data) in /run/build/org.nickvision.money/NickvisionMoney.GNOME/Views/AccountView.cs:line 385

https://github.com/NickvisionApps/Denaro/blob/b1d7986d2e3ee31265599f01e15fb2b5a99f12b4/NickvisionMoney.Shared/Controllers/AccountViewController.cs#L216

https://github.com/NickvisionApps/Denaro/blob/b1d7986d2e3ee31265599f01e15fb2b5a99f12b4/NickvisionMoney.GNOME/Views/AccountView.cs#L385

Denaro version 2023.6.2.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

Yeah somehow the custom currency got corrupted and was blank even though you set it.

The application falls back to your system currency when the custom one is null, but it should also fallback when it’s empty, hence why it crashes now. Will be fixed in the next update