mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797924 - Crash when searching for customer to process payment.
Slightly speculative since the bug isn't reliably reproduceable, but qof_class_get_property can silently return nullptr so it's wise to make sure that we have a ptr before trying to dereference it.
This commit is contained in:
@@ -507,7 +507,7 @@ gnc_general_search_set_selected (GNCGeneralSearch *gsl, gpointer selection)
|
||||
|
||||
gnc_gui_component_clear_watches (priv->component_id);
|
||||
|
||||
if (selection)
|
||||
if (selection && priv->get_guid)
|
||||
{
|
||||
const QofParam *get_guid = priv->get_guid;
|
||||
priv->guid = * ((GncGUID *)(get_guid->param_getfcn
|
||||
|
||||
Reference in New Issue
Block a user