]> code.delx.au - gnu-emacs/blobdiff - lwlib/lwlib-Xm.c
Merge from emacs-23.
[gnu-emacs] / lwlib / lwlib-Xm.c
index 60f282e69f4edba25aadfac939836e0ac21ec540..b6c2ef1b3233ecb5519b7431846004b74effe1ff 100644 (file)
@@ -800,7 +800,7 @@ xm_update_menu (widget_instance* instance,
 
   /* Now replace from scratch all the buttons after the last
      place that the top-level structure changed.  */
-  if (val->contents->change == STRUCTURAL_CHANGE)
+  if (val->contents && val->contents->change == STRUCTURAL_CHANGE)
     {
       destroy_all_children (widget, num_children_to_keep);
       make_menu_in_widget (instance, widget, val->contents,