Skip to content

Commit 344b5e2

Browse files
committed
🐛 crash on first launch
1 parent 1b7ac93 commit 344b5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Slackdeck/Preferences.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct Prefercences {
1818
}
1919

2020
static var urls: [[String]] {
21-
get { return defaults.array(forKey: kUrls) as! [[String]] }
21+
get { return (defaults.array(forKey: kUrls) as? [[String]]) ?? [] }
2222
set { save(object: newValue as AnyObject, forKey: kUrls) }
2323
}
2424
}

0 commit comments

Comments
 (0)