summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-common.c b/tests/test-common.c
index 608b405c..786973f1 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -151,6 +151,9 @@ print_attr_list (PangoAttrList *attrs, GString *string)
{
PangoAttrIterator *iter;
+ if (!attrs)
+ return;
+
iter = pango_attr_list_get_iterator (attrs);
do {
gint start, end;