diff options
author | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
commit | 2837048a59ac5beab0b3428ca89c86857765de0a (patch) | |
tree | 15417d195f7223d85fac22560479717dfda31101 /macosx/HBUtilities.m | |
parent | 93fb333304b2493a50623b04caac95b53eca3240 (diff) |
MacGui: add nullability annotations to the headers and use weak where is possible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBUtilities.m')
-rw-r--r-- | macosx/HBUtilities.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBUtilities.m b/macosx/HBUtilities.m index 9471d5a27..eab00968e 100644 --- a/macosx/HBUtilities.m +++ b/macosx/HBUtilities.m @@ -23,7 +23,7 @@ NSURL *appSupportURL = [[[fileManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask] firstObject] URLByAppendingPathComponent:@"HandBrake"]; - if (![fileManager fileExistsAtPath:appSupportURL.path]) + if (appSupportURL && ![fileManager fileExistsAtPath:appSupportURL.path]) { [fileManager createDirectoryAtPath:appSupportURL.path withIntermediateDirectories:YES attributes:nil error:NULL]; } |