Skip to content

Commit

Permalink
Artwork: Remove force optional unwrap
Browse files Browse the repository at this point in the history
- Lead to a crash if the asset is not contained in the app
  • Loading branch information
BLeeEZ committed Mar 2, 2020
1 parent f6d9f8d commit 3007bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Amperfy/Storage/EntityWrappers/Artwork.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Artwork: NSObject {
}

static var defaultImage: UIImage = {
return UIImage(named: "song")!
return UIImage(named: "song") ?? UIImage()
}()

var status: ImageStatus {
Expand Down

0 comments on commit 3007bed

Please sign in to comment.