[Gnucash-changes] r13413 - gnucash/trunk - Check for the existence
of a page before dereferencing it. Fixes
David Hampton
hampton at cvs.gnucash.org
Mon Feb 27 11:08:40 EST 2006
Author: hampton
Date: 2006-02-27 11:08:39 -0500 (Mon, 27 Feb 2006)
New Revision: 13413
Trac: http://svn.gnucash.org/trac/changeset/13413
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Check for the existence of a page before dereferencing it. Fixes
332680.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-02-27 15:16:58 UTC (rev 13412)
+++ gnucash/trunk/ChangeLog 2006-02-27 16:08:39 UTC (rev 13413)
@@ -1,3 +1,8 @@
+2006-02-27 David Hampton <hampton at employees.org>
+
+ * src/gnome-utils/gnc-main-window.c: Check for the existence of a
+ page before dereferencing it. Fixes 332680.
+
2006-02-27 Derek Atkins <derek at ihtfp.com>
* src/business/business-gnome/glade/job.glade
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-02-27 15:16:58 UTC (rev 13412)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-02-27 16:08:39 UTC (rev 13413)
@@ -2245,7 +2245,7 @@
priv = GNC_MAIN_WINDOW_GET_PRIVATE(window);
page = priv->current_page;
- if (GNC_PLUGIN_PAGE_GET_CLASS(page)->update_edit_menu_actions) {
+ if (page && GNC_PLUGIN_PAGE_GET_CLASS(page)->update_edit_menu_actions) {
(GNC_PLUGIN_PAGE_GET_CLASS(page)->update_edit_menu_actions)(page, hide);
return;
}
More information about the gnucash-changes
mailing list