From: Jean-Baptiste Mardelle Date: Tue, 12 Feb 2013 00:13:00 +0000 (+0100) Subject: Fix Coverity #980680 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cff661c0aaec8c9d51f4ba54e095ea17897a6166;p=kdenlive Fix Coverity #980680 --- diff --git a/src/projectlist.cpp b/src/projectlist.cpp index ca4ba8c1..181cb96d 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -847,7 +847,10 @@ void ProjectList::slotClipSelected() // this is a sub item, use base clip m_deleteButton->defaultAction()->setEnabled(true); clip = static_cast (item->parent()); - if (clip == NULL) kDebug() << "-----------ERROR"; + if (clip == NULL) { + kDebug() << "-----------ERROR"; + return; + } SubProjectItem *sub = static_cast (item); if (clip->referencedClip()->getProducer() == NULL) m_render->getFileProperties(clip->referencedClip()->toXML(), clip->clipId(), m_listView->iconSize().height(), true); emit clipSelected(clip->referencedClip(), sub->zone());