mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Don't crash if window properties not available
Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
parent
0c47d323b1
commit
c9692e0aa0
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue