From 1cfa86695afc0d191414af0c7914f3a4b6d22b35 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Mon, 28 Oct 2013 19:17:00 +0000 Subject: [PATCH] Guard against bad parameter to gnc_plugin_page_invoice_summarybar_position_changed. This avoids the crash in bug #710979 but doesn't fix the underlying problem. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23346 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-gnome/gnc-plugin-page-invoice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/business/business-gnome/gnc-plugin-page-invoice.c b/src/business/business-gnome/gnc-plugin-page-invoice.c index a2f9536540..f6870944f6 100644 --- a/src/business/business-gnome/gnc-plugin-page-invoice.c +++ b/src/business/business-gnome/gnc-plugin-page-invoice.c @@ -621,6 +621,7 @@ gnc_plugin_page_invoice_summarybar_position_changed(gpointer prefs, gchar *pref, plugin_page = GNC_PLUGIN_PAGE(user_data); page = GNC_PLUGIN_PAGE_INVOICE (user_data); + g_return_if_fail(page != NULL); priv = GNC_PLUGIN_PAGE_INVOICE_GET_PRIVATE(page); if (gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, GNC_PREF_SUMMARYBAR_POSITION_TOP))