We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f688a2 commit 5a4b4aeCopy full SHA for 5a4b4ae
1 file changed
android/src/main/java/com/reactlibrary/Convert.java
@@ -105,6 +105,9 @@ public static ReadableMap toMap(Artist artist) {
105
}
106
107
public static ReadableMap toMap(Track track) {
108
+ if (track == null) {
109
+ return null;
110
+ }
111
WritableMap map = Arguments.createMap();
112
113
map.putDouble("duration", (double) track.duration);
0 commit comments