/* A general interface to the widgets of different toolkits.
Copyright (C) 1992, 1993 Lucid, Inc.
-Copyright (C) 1994-1996, 1999-2015 Free Software Foundation, Inc.
+Copyright (C) 1994-1996, 1999-2016 Free Software Foundation, Inc.
This file is part of the Lucid Widget Library.
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