summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-23 00:56:17 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-23 00:56:17 +0000
commit52c2b917ea802f7259599a0ef0c02098b1c35b6d (patch)
tree46e9208e192a2231239359b415a26e10eebd57a7 /src/tools
parent817620394821a4581ea8cfd02fb23f2524169405 (diff)
Fix crash on startup.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc4
1 files changed, 3 insertions, 1 deletions
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 ()) {