mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-03 16:03:06 +00:00
Implemented null check on song initialization
This commit is contained in:
@@ -52,7 +52,7 @@ public class Song implements Parcelable {
|
|||||||
this.id = child.getId();
|
this.id = child.getId();
|
||||||
this.title = child.getTitle();
|
this.title = child.getTitle();
|
||||||
this.trackNumber = child.getTrack();
|
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.year = child.getYear() != null ? child.getYear() : 0;
|
||||||
this.duration = child.getDuration();
|
this.duration = child.getDuration();
|
||||||
this.albumId = child.getAlbumId();
|
this.albumId = child.getAlbumId();
|
||||||
|
|||||||
Reference in New Issue
Block a user