Fixes Coverity CID 709290: Dereference after null check (FORWARD_NULL) Comparing "this->m_clipref" to null implies that "this->m_clipref" might be null. 717 else if (m_clipref) { ... Passing null variable "this->m_clipref" to function "AbstractClipItem::info() const", which dereferences it. [show details] 733 info = m_clipref->info(); --- src/effectstack/effectstackview2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/effectstack/effectstackview2.cpp b/src/effectstack/effectstackview2.cpp index 98591ba..c345272 100644 --- a/src/effectstack/effectstackview2.cpp +++ b/src/effectstack/effectstackview2.cpp @@ -729,7 +729,7 @@ void EffectStackView2::slotCreateRegion(int ix, KUrl url) info.startPos = GenTime(-1); info.track = 0; } - else { + else if (m_clipref) { info = m_clipref->info(); } CollapsibleEffect *current = getEffectByIndex(ix); @@ -744,7 +744,7 @@ void EffectStackView2::slotCreateRegion(int ix, KUrl url) if (m_effectMetaInfo.trackMode) { isSelected = currentEffect->effectIndex() == 1; } - else { + else if (m_clipref) { isSelected = currentEffect->effectIndex() == m_clipref->selectedEffectIndex(); } if (isSelected) currentEffect->setActive(true); -- 1.7.10.4 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Kdenlive-devel mailing list Kdenlive-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kdenlive-devel