project wide: adapt to new non-NULL value of view_get_string_prop()

This commit is contained in:
Consolatis 2024-12-29 02:18:27 +01:00 committed by Johan Malm
parent 023427b4f4
commit c772224a54
4 changed files with 11 additions and 13 deletions

View file

@ -280,6 +280,10 @@ struct lab_img *
desktop_entry_icon_lookup(struct server *server, const char *app_id, int size,
float scale)
{
if (string_null_or_empty(app_id)) {
return NULL;
}
struct sfdo *sfdo = server->sfdo;
if (!sfdo) {
return NULL;
@ -328,6 +332,10 @@ desktop_entry_icon_lookup(struct server *server, const char *app_id, int size,
const char *
desktop_entry_name_lookup(struct server *server, const char *app_id)
{
if (string_null_or_empty(app_id)) {
return NULL;
}
struct sfdo *sfdo = server->sfdo;
if (!sfdo) {
return NULL;