diff options
Diffstat (limited to 'macosx/HBChapter.m')
-rw-r--r-- | macosx/HBChapter.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/HBChapter.m b/macosx/HBChapter.m index b3badef0c..d33ec9427 100644 --- a/macosx/HBChapter.m +++ b/macosx/HBChapter.m @@ -84,13 +84,14 @@ if (version == 1 && (self = [self init])) { - decodeObject(_title, NSString); - decodeObject(_duration, NSString); + decodeObjectOrFail(_title, NSString); + decodeObjectOrFail(_duration, NSString); decodeInteger(_index); return self; } - + +fail: return nil; } |