Skip to content

Commit

Permalink
fix null value check
Browse files Browse the repository at this point in the history
  • Loading branch information
Artx-II committed Dec 10, 2021
1 parent 478c6c1 commit d0ffa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/legacyPreferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class LegacyPreferences {
artist: song['artist'],
genre: song['genre'],
artUri: Uri.parse(song['artUri']),
duration: map['duration'] != null ? Duration(seconds: int.parse(song['duration'])) : null,
duration: song['duration'] != null ? Duration(seconds: int.parse(song['duration'])) : null,
extras: {
"downloadType": song['extras']['downloadType'],
"artwork": song['extras']['artwork'],
Expand Down

0 comments on commit d0ffa13

Please sign in to comment.