Do not load sets with a newer file version than the one supported.

This commit is contained in:
Damiano Galassi committed 2016-12-07 10:08:53 +01:00
1 parent 7db32891ef
commit d77bb4f1ec
1 file changed
+3 -1
+3 -1
View File
@@ -93,7 +93,9 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
MP42Metadata *newPreset = [unarchiver decodeObjectOfClass:[MP42Metadata class] forKey:NSKeyedArchiveRootObjectKey];
[unarchiver finishDecoding];
[_presets addObject:newPreset];
if (newPreset) {
[_presets addObject:newPreset];
}
}
@catch (NSException *exception) {
continue;