Implemented null check on song initialization

This commit is contained in:
CappielloAntonio committed 2021-08-05 10:05:21 +02:00
1 parent 8af8f56238
commit ccddf3bf3f
1 file changed
+1 -1
@@ -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();