Commit 6cc0d9b7 authored by luyikei's avatar luyikei

Clip.qml: Avoid accessing a null item's property

parent 0c34c9be
......@@ -171,8 +171,11 @@ Rectangle {
Drag.drop();
selected = false;
if ( linkedClip )
findClipItem( linkedClip ).linkedClip = "";
if ( linkedClip ) {
var linkedClipItem = findClipItem( linkedClip );
if ( linkedClipItem )
linkedClipItem.linkedClip = "";
}
for ( var i = 0; i < allClips.length; ++i ) {
if ( allClips[i] === clip ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment