X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0b2014f9cb13efdd6ebc30627d88b9a7f3a42149..HEAD:/lwlib/lwlib.c diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 2ffd477b7b..d1c5195dbf 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -1,7 +1,7 @@ /* 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. @@ -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