diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/job.cc | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2016-09-28 c.hetherington <cth@carlh.net> + + * Fix crash on "report a problem" in the KDM creator. + 2016-09-27 Carl Hetherington <cth@carlh.net> * Updated ru_RU translation from Igor Voytovich. diff --git a/src/lib/job.cc b/src/lib/job.cc index ed0370479..51deca404 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -45,8 +45,8 @@ using boost::shared_ptr; using boost::optional; using boost::function; -#define LOG_ERROR_NC(...) _film->log()->log (__VA_ARGS__, LogEntry::TYPE_ERROR); -#define LOG_GENERAL(...) _film->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL); +#define LOG_ERROR_NC(...) if (_film) { _film->log()->log (__VA_ARGS__, LogEntry::TYPE_ERROR); } +#define LOG_GENERAL(...) if (_film) { _film->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL); } /** @param film Associated film, or 0 */ Job::Job (shared_ptr<const Film> film) |
