[vlmc-devel] Clip.qml: Avoid accessing a null item's property
Yikai Lu
git at videolan.org
Thu Jul 28 14:39:23 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jul 28 18:03:18 2016 +0900| [6cc0d9b7217def46cb90c60aa719f35883a4b08b] | committer: Yikai Lu
Clip.qml: Avoid accessing a null item's property
> https://code.videolan.org/videolan/vlmc/commit/6cc0d9b7217def46cb90c60aa719f35883a4b08b
---
src/Gui/timeline/Clip.qml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index d3994c0..3422234 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -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 ) {
More information about the Vlmc-devel
mailing list