Fix nullness issue

PiperOrigin-RevId: 227822937
This commit is contained in:
andrewlewis 2019-01-04 09:51:01 +00:00 committed by Oliver Woodman
parent ed1f41db1b
commit 5efbcb4443

View File

@ -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 {
} }
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();