loudmouth/lm-parser.c
changeset 34 c09b43b3b697
parent 7 d8eae83450ac
child 57 6b168a8917f7
--- a/loudmouth/lm-parser.c	Tue Aug 05 09:25:53 2003 +0000
+++ b/loudmouth/lm-parser.c	Fri Aug 15 09:44:11 2003 +0000
@@ -128,6 +128,11 @@
 	g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_PARSER,
 	       "Trying to close node: %s\n", node_name);
 
+        if (!parser->cur_node) {
+                /* FIXME: LM-1 should look at this */
+                return;
+        }
+        
 	if (strcmp (parser->cur_node->name, node_name) != 0) {
 		if (strcmp (node_name, "stream:stream")) {
 			g_print ("Got an stream:stream end\n");