diff --git a/starboard/android/shared/media_decoder.cc b/starboard/android/shared/media_decoder.cc index 29c78f9ad565..115a2de0ba51 100644 --- a/starboard/android/shared/media_decoder.cc +++ b/starboard/android/shared/media_decoder.cc @@ -475,7 +475,9 @@ bool MediaDecoder::ProcessOneInputBuffer( ReportError(kSbPlayerErrorDecode, error_message); return false; } - byte_buffer.CopyInto(data, size); + if (data) { + byte_buffer.CopyInto(data, size); + } } jint status;