diff options
-rw-r--r-- | macosx/HBController.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index d5599e899..51b7c503f 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -756,8 +756,12 @@ { // Open a panel to let the user choose and update the text field NSSavePanel *panel = [NSSavePanel savePanel]; - panel.directoryURL = self.job.destURL.URLByDeletingLastPathComponent; - panel.nameFieldStringValue = self.job.destURL.lastPathComponent; + + if (self.job.destURL) + { + panel.directoryURL = self.job.destURL.URLByDeletingLastPathComponent; + panel.nameFieldStringValue = self.job.destURL.lastPathComponent; + } [panel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result) { |