After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728826 - Warnings when switching to Financial mode
Warnings when switching to Financial mode
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
git master
Other Linux
: Normal minor
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-23 23:08 UTC by Vadim Rutkovsky
Modified: 2014-06-08 20:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix critical warnings when entering Financial Mode (1.31 KB, patch)
2014-05-29 14:48 UTC, Michael Catanzaro
committed Details | Review

Description Vadim Rutkovsky 2014-04-23 23:08:38 UTC
Right after switching to Financial mode warnings are printed:
** (gnome-calculator:15595): CRITICAL **: number_reciprocal: assertion 'self != NULL' failed

** (gnome-calculator:15595): CRITICAL **: currency_set_value: assertion 'value != NULL' failed

** (gnome-calculator:15595): CRITICAL **: number_is_zero: assertion 'self != NULL' failed

** (gnome-calculator:15595): CRITICAL **: number_is_zero: assertion 'self != NULL' failed

It doesn't seem to affect any functionality

Reproduced on latest master and gnome-calculator-3.12.1-1.fc20.x86_64
Comment 1 Michael Catanzaro 2014-05-29 14:48:50 UTC
Created attachment 277464 [details] [review]
Fix critical warnings when entering Financial Mode

Currency.number needs to be nullable.
Comment 2 PioneerAxon 2014-06-08 20:35:23 UTC
Review of attachment 277464 [details] [review]:

Works well. Committed.. :)

Thenk you for the patch.
Comment 3 PioneerAxon 2014-06-08 20:36:52 UTC
Vadim Rutkovsky,
Thank you for the bug report. :)

The issue has been fixed, and will be available with next release.