diff --git a/src/icon.c b/src/icon.c index 790bfd29..9e3c89a4 100644 --- a/src/icon.c +++ b/src/icon.c @@ -803,6 +803,9 @@ RImage *get_rimage_icon_from_wm_hints(WIcon *icon) wwin = icon->owner; + if (!wwin->wm_hints) + return NULL; + if (!getSize(wwin->wm_hints->icon_pixmap, &w, &h, &d)) { icon->owner->wm_hints->flags &= ~IconPixmapHint; return NULL;