summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-04 23:02:08 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-04 23:02:08 +0200
commitc40bb4fc35a3d745f43bbd4f976f8e987a90ed62 (patch)
treea8fb2e1c1592ddd718643b8040ef69f488810f11 /source
parent663f53290f82a744ee548fd9b8e097ad20712ba1 (diff)
Fix small bug and extend test for theme parser
Diffstat (limited to 'source')
-rw-r--r--source/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c
index 9914f5c0..120221d3 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -351,7 +351,7 @@ static void rofi_theme_resolve_link_property ( Property *p, int depth )
return;
}
- if ( g_hash_table_contains ( rofi_theme->properties, name ) ) {
+ if ( rofi_theme->properties && g_hash_table_contains ( rofi_theme->properties, name ) ) {
Property *pr = g_hash_table_lookup ( rofi_theme->properties, name );
if ( pr->type == P_LINK ) {
if ( pr->value.link.ref == NULL ) {