Commit 5efbcb44 by andrewlewis Committed by Oliver Woodman

Fix nullness issue

PiperOrigin-RevId: 227822937
parent ed1f41db
...@@ -19,6 +19,7 @@ import android.os.Parcel; ...@@ -19,6 +19,7 @@ import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import com.google.android.exoplayer2.metadata.Metadata; import com.google.android.exoplayer2.metadata.Metadata;
import com.google.android.exoplayer2.util.Util;
import java.util.Arrays; import java.util.Arrays;
/** /**
...@@ -45,7 +46,7 @@ public final class MdtaMetadataEntry implements Metadata.Entry { ...@@ -45,7 +46,7 @@ public final class MdtaMetadataEntry implements Metadata.Entry {
} }
private MdtaMetadataEntry(Parcel in) { private MdtaMetadataEntry(Parcel in) {
key = in.readString(); key = Util.castNonNull(in.readString());
value = new byte[in.readInt()]; value = new byte[in.readInt()];
in.readByteArray(value); in.readByteArray(value);
localeIndicator = in.readInt(); localeIndicator = in.readInt();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment