From cff661c0aaec8c9d51f4ba54e095ea17897a6166 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Tue, 12 Feb 2013 01:13:00 +0100 Subject: [PATCH] Fix Coverity #980680 --- src/projectlist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); -- 2.39.2