summaryrefslogtreecommitdiff
path: root/src/select/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select/select.c')
-rw-r--r--src/select/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 04dff1f..1d6740f 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -408,7 +408,7 @@ css_error css_select_style(css_select_ctx *ctx, void *node,
css_error error;
css_select_state state;
- if (ctx == NULL || node == NULL || result == NULL)
+ if (ctx == NULL || node == NULL || result == NULL || handler == NULL)
return CSS_BADPARM;
/* Set up the selection state */