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

index d6060ace19d7efba80cdc6803a15628912927242..193f5ef9e39e11cc5a8450c5fac2cf8bfe86be77 100644 (file)
@@ -5520,6 +5520,7 @@ void CustomTrackView::slotDeleteAllClipMarkers(const QString &id)
 void CustomTrackView::slotSaveClipMarkers(const QString &id)
 {
     DocClipBase *base = m_document->clipManager()->getClipById(id);
+    if (!base) return;
     QList < CommentedTime > markers = base->commentedSnapMarkers();
     if (!markers.isEmpty()) {
        // Set  up categories