diff
17     switch (content->type) {
18 +     if (content->c1 == NULL) {
18 +         fprintf(stderr, "Error: content->c1 is NULL\n");
18 +         return;
18 +     }
18       if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
