summaryrefslogtreecommitdiff
path: root/src/reel_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/reel_asset.cc')
-rw-r--r--src/reel_asset.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reel_asset.cc b/src/reel_asset.cc
index 98387653..60c3242c 100644
--- a/src/reel_asset.cc
+++ b/src/reel_asset.cc
@@ -74,7 +74,9 @@ ReelAsset::ReelAsset (shared_ptr<Asset> asset, Fraction edit_rate, int64_t intri
, _hash (asset->hash ())
{
/* default _annotation_text to the leaf name of our file */
- _annotation_text = asset->file().leaf().string ();
+ if (asset->file ()) {
+ _annotation_text = asset->file()->leaf().string ();
+ }
}
ReelAsset::ReelAsset (shared_ptr<const cxml::Node> node)