From: Damiano Galassi Date: Sat, 27 Oct 2018 13:44:01 +0000 (+0200) Subject: MacGui: add an assert in HBQueueController to track down a rare crash. X-Git-Tag: 1.2.0~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=723649850dd9c47af15e6319a28bba1fb8cefee1;p=handbrake MacGui: add an assert in HBQueueController to track down a rare crash. --- 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;