http://www.kdenlive.org/forum/crash-when-opening-kdenlive-file
svn path=/trunk/kdenlive/; revision=4905
char *tmp = decodedString("kdenlivetitle:" + xml.attribute("resource"));
producer = new Mlt::Producer(*m_mltProfile, 0, tmp);
delete[] tmp;
- if (producer && xml.hasAttribute("xmldata")) {
+ if (producer && producer->is_valid() && xml.hasAttribute("xmldata")) {
tmp = decodedString(xml.attribute("xmldata"));
producer->set("xmldata", tmp);
delete[] tmp;