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