diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index f4ff434..8a2420f 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -1711,6 +1711,11 @@ find_extension_point_section (GMenuModel  *model,
 			gint j, j_items;
 
 			subsection = g_menu_model_get_item_link (model, i, G_MENU_LINK_SECTION);
+			
+			if (!subsection)
+			{
+				subsection = model;
+			}
 
 			j_items = g_menu_model_get_n_items (subsection);
