Fix crash.
authorCarl Hetherington <cth@carlh.net>
Tue, 22 Jul 2014 10:59:49 +0000 (11:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 22 Jul 2014 10:59:49 +0000 (11:59 +0100)
src/wx/content_panel.cc

index 5ef2d8356bbf6a4a259dccb954046e0aeeb61aef..40ffb9b2e98fc734c239a280cdbeb16f5a19d715 100644 (file)
@@ -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 ();