]> git.sesse.net Git - kdenlive/commitdiff
Fix Coverity #980684
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 12 Feb 2013 00:06:14 +0000 (01:06 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 12 Feb 2013 00:06:14 +0000 (01:06 +0100)
src/customtrackview.cpp

index 51b230ad8c2cfb4744aa94dcadbd8521f181cde1..d6060ace19d7efba80cdc6803a15628912927242 100644 (file)
@@ -5498,6 +5498,7 @@ void CustomTrackView::slotDeleteClipMarker(const QString &comment, const QString
 void CustomTrackView::slotDeleteAllClipMarkers(const QString &id)
 {
     DocClipBase *base = m_document->clipManager()->getClipById(id);
+    if (!base) return;
     QList <CommentedTime> markers = base->commentedSnapMarkers();
 
     if (markers.isEmpty()) {