summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-16 15:06:39 +0100
committerDamiano Galassi <[email protected]>2016-01-16 15:06:39 +0100
commited8c11eed00c9c4a1df895a42ae1b6d97bd1e66b (patch)
tree0aacb8e3198f8688de17e9cc2341f1e4fc1f7423 /macosx/HBQueueController.m
parente3d65a621c2c1facddd70dffcf26415782d13f72 (diff)
MacGui: check if the activity log is not nil before adding it to HBOutputRedirect.
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r--macosx/HBQueueController.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m
index 537e8c86b..8c020539b 100644
--- a/macosx/HBQueueController.m
+++ b/macosx/HBQueueController.m
@@ -582,8 +582,11 @@
// Tell HB to output a new activity log file for this encode
self.currentLog = [[HBJobOutputFileWriter alloc] initWithJob:nextJob];
- [[HBOutputRedirect stderrRedirect] addListener:self.currentLog];
- [[HBOutputRedirect stdoutRedirect] addListener:self.currentLog];
+ if (self.currentLog)
+ {
+ [[HBOutputRedirect stderrRedirect] addListener:self.currentLog];
+ [[HBOutputRedirect stdoutRedirect] addListener:self.currentLog];
+ }
self.currentJob = nextJob;
[self reloadQueueItemAtIndex:[self.jobs indexOfObject:nextJob]];