summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 5ef2d8356..40ffb9b2e 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -426,7 +426,7 @@ ContentPanel::setup ()
int const t = _content->GetItemCount ();
bool const valid = (*i)->paths_valid ();
shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent> (*i);
- bool const needs_kdm = !dcp->can_be_played ();
+ bool const needs_kdm = dcp && !dcp->can_be_played ();
string s = (*i)->summary ();