X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b3c30478fc81131e82286699f29c09a78135369..82bf96f54849a84b449d1b9f0fcff8f28649b07e:/src/common/stockitem.cpp?ds=sidebyside

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))
     {