summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-30 07:17:22 +0000
committerritsuka <[email protected]>2015-05-30 07:17:22 +0000
commit2837048a59ac5beab0b3428ca89c86857765de0a (patch)
tree15417d195f7223d85fac22560479717dfda31101 /macosx/HBPreset.m
parent93fb333304b2493a50623b04caac95b53eca3240 (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/HBPreset.m')
-rw-r--r--macosx/HBPreset.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 4fcb82495..12c9017f0 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -29,7 +29,10 @@
_name = [title copy];
_isBuiltIn = builtIn;
_content = [content copy];
- _presetDescription = [content[@"PresetDescription"] copy];
+ if ([content[@"PresetDescription"] isKindOfClass:[NSString class]])
+ {
+ _presetDescription = [content[@"PresetDescription"] copy];
+ }
}
return self;
}