]> git.sesse.net Git - kdenlive/commitdiff
http://www.kdenlive.org/mantis/view.php?id=1771
authorSimon A. Eugster <simon.eu@gmail.com>
Tue, 24 Aug 2010 18:31:30 +0000 (18:31 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Tue, 24 Aug 2010 18:31:30 +0000 (18:31 +0000)
svn path=/trunk/kdenlive/; revision=4753

src/keyframeedit.cpp

index b18d39fe11107001fb025158b080fff1f9ecf968..bf1a426d270c8ba9653caee980d20095e219b5f5 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <QHeaderView>
 
-
 KeyframeEdit::KeyframeEdit(QDomElement e, int minFrame, int maxFrame, int minVal, int maxVal, Timecode tc, int active_keyframe, QWidget* parent) :
         QWidget(parent),
         m_min(minFrame),
@@ -340,7 +339,11 @@ void KeyframeEdit::slotAdjustKeyframeInfo(bool seek)
         if (!doubleparam)
             continue;
         doubleparam->blockSignals(true);
-        doubleparam->setValue(keyframe_list->item(item->row(), col)->text().toInt());
+        if (keyframe_list->item(item->row(), col)) {
+            doubleparam->setValue(keyframe_list->item(item->row(), col)->text().toInt());
+        } else {
+            kDebug() << "Null pointer exception caught: http://www.kdenlive.org/mantis/view.php?id=1771";
+        }
         doubleparam->blockSignals(false);
     }
     if (KdenliveSettings::keyframeseek() && seek)