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:
John Ralls
2020-08-28 09:03:59 -07:00
parent a50c188dca
commit de33d1ef15

View File

@@ -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