summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stk.c b/src/stk.c
index a58513b2..222d4ba3 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -303,6 +303,9 @@ static char *dbus_apply_text_attributes(const char *text,
const uint8_t *j = attr->attributes;
const uint8_t *end = j + attr->len;
+ if (!text)
+ return NULL;
+
if (attr->len & 3)
return NULL;