If a previously defined domain becomes undefined prior to calling virDomainGetXMLDesc a NULL pointer is returned and then passed to strstr on entry to the parsing logic on the faulty assumption that xml data will always be returned. Need a NULL check prior to entering the parsing logic.
Adds NULL test to parsing logic entry point
Patch attached
Committed to CVS Head