Fix crash on startup.
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Feb 2014 00:56:17 +0000 (00:56 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Feb 2014 00:56:17 +0000 (00:56 +0000)
src/tools/dcpomatic.cc

index ce00cb13fbc30456acc71fce05a36af368d0b19b..715d420872e0838b0ea3a0d0416270bf90445c77 100644 (file)
@@ -674,7 +674,9 @@ class App : public wxApp
                _timer.reset (new wxTimer (this));
                _timer->Start (1000);
 
-               _frame->check_film_state_version (film->state_version ());
+               if (film) {
+                       _frame->check_film_state_version (film->state_version ());
+               }
 
                UpdateChecker::instance()->StateChanged.connect (boost::bind (&App::update_checker_state_changed, this));
                if (Config::instance()->check_for_updates ()) {