From 52c2b917ea802f7259599a0ef0c02098b1c35b6d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 23 Feb 2014 00:56:17 +0000 Subject: Fix crash on startup. --- src/tools/dcpomatic.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index ce00cb13f..715d42087 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -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 ()) { -- cgit v1.2.3