summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-10-27 15:44:01 +0200
committerDamiano Galassi <[email protected]>2018-10-27 15:44:01 +0200
commit723649850dd9c47af15e6319a28bba1fb8cefee1 (patch)
tree3f13458579a809d505473f8321b6adfc994e2b9d /macosx
parent177c1e39d22515489cfe6ba2223655456eac01db (diff)
MacGui: add an assert in HBQueueController to track down a rare crash.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBQueueController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m
index 7fb3878c1..3a0840293 100644
--- a/macosx/HBQueueController.m
+++ b/macosx/HBQueueController.m
@@ -854,7 +854,9 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext;
NSParameterAssert(job);
// Reset the title in the job.
- job.title = self.core.titles[0];
+ job.title = self.core.titles.firstObject;
+
+ NSParameterAssert(job);
HBStateFormatter *formatter = [[HBStateFormatter alloc] init];
formatter.title = job.outputFileName;