Don't crash if window properties not available

Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
Felix Weilbach 2021-05-01 23:33:45 +02:00
parent 0c47d323b1
commit c9692e0aa0

View file

@ -567,7 +567,9 @@ static char *get_desktop_entry_from_node(json_object *json_node) {
json_object *json_window_properties;
json_object_object_get_ex(
json_node, "window_properties", &json_window_properties);
assert(json_window_properties);
if (!json_window_properties) {
return NULL;
}
json_object *json_instance;
json_object_object_get_ex(