Browse Source

SettingsManager: Instead of crashing we just return an empty array

Carola Nitz 6 years ago
parent
commit
3b95b01af0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/VLCSettingsSpecifierManager.swift

+ 2 - 1
Sources/VLCSettingsSpecifierManager.swift

@@ -20,7 +20,8 @@ class VLCSettingsSpecifierManager: NSObject {
     
     var items: NSArray {
         guard let items = specifier?.multipleValues() as NSArray? else {
-            fatalError("VLCSettingsSpecifierManager: No rows provided for \(specifier?.key() ?? "null specifier")")
+            assertionFailure("VLCSettingsSpecifierManager: No rows provided for \(specifier?.key() ?? "null specifier")")
+            return []
         }
         return items
     }