X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b3c30478fc81131e82286699f29c09a78135369..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/common/stockitem.cpp diff --git a/src/common/stockitem.cpp b/src/common/stockitem.cpp index dadb606182..ee38d92f20 100644 --- a/src/common/stockitem.cpp +++ b/src/common/stockitem.cpp @@ -380,6 +380,9 @@ const char *wxGetStockGtkID(wxWindowID id) bool wxGetStockGtkAccelerator(const char *id, GdkModifierType *mod, guint *key) { + if (!id) + return false; + GtkStockItem stock_item; if (gtk_stock_lookup (id, &stock_item)) {