Index: ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc |
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc b/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc |
index f8c79fafcc7f7cb3dd3413a42b6c627e9c73047f..b87580a0bd66870c61232a592df6c113e3f9da23 100644 |
--- a/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc |
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc |
@@ -67,7 +67,7 @@ void PnaclStreamingTranslateThread::PutBytes(std::vector<char>* bytes, |
bytes->resize(count); |
} |
NaClXMutexLock(&cond_mu_); |
- if (count == PP_OK || count < 0) { |
+ if (count == PP_OK || count < 0 || bytes == NULL) { |
done_ = true; |
} else { |
data_buffers_.push_back(std::vector<char>()); |