X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/641a3472ef245157ebcb2114f2d608cb3cb401a7..HEAD:/lwlib/lwlib.c diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index c68cf77c92..d1c5195dbf 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -1042,11 +1042,13 @@ widget_value* lw_get_all_values (LWLIB_ID id) { widget_info* info = get_widget_info (id, False); - widget_value* val = info->val; - if (lw_get_some_values (id, val)) - return val; - else - return NULL; + if (info) + { + widget_value* val = info->val; + if (lw_get_some_values (id, val)) + return val; + } + return NULL; } /* internal function used by the library dependent implementation to get the