mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Implemented null check on song initialization
This commit is contained in:
parent
8af8f56238
commit
ccddf3bf3f
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ public class Song implements Parcelable {
|
|||
this.id = child.getId();
|
||||
this.title = child.getTitle();
|
||||
this.trackNumber = child.getTrack();
|
||||
this.discNumber = child.getDiscNumber();
|
||||
this.discNumber = child.getDiscNumber() != null ? child.getDiscNumber() : 0;
|
||||
this.year = child.getYear() != null ? child.getYear() : 0;
|
||||
this.duration = child.getDuration();
|
||||
this.albumId = child.getAlbumId();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue