diff --git a/ChangeLog b/ChangeLog index e8625a63c2..7179580e49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-09-09 Derek Atkins + + * src/gnome-utils/dialog-transfer.c: during the dialog startup it + tries to build the transfer rate. This crashes on Solaris because + during startup one commodity is still NULL when it tries to print + it. + Fixes bug #121677 + 2003-09-04 Derek Atkins Apply Nigel Titley's patch to fix #103174: diff --git a/src/gnome-utils/dialog-transfer.c b/src/gnome-utils/dialog-transfer.c index ef55875eea..8305308175 100644 --- a/src/gnome-utils/dialog-transfer.c +++ b/src/gnome-utils/dialog-transfer.c @@ -838,6 +838,14 @@ gnc_xfer_dialog_update_conv_info (XferDialog *xferData) from_mnemonic = gnc_commodity_get_mnemonic(xferData->from_commodity); to_mnemonic = gnc_commodity_get_mnemonic(xferData->to_commodity); + /* On the theory that if we don't have a mnemonic then we don't + * have a commodity... On Solaris this crashes without a string. + * So, just leave now and wait for the second initialization to + * occur. + */ + if (!from_mnemonic || !to_mnemonic) + return; + // price = gnc_amount_edit_get_amount(GNC_AMOUNT_EDIT(xferData->price_edit)); price = gnc_xfer_dialog_compute_price(xferData);