summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base
diff options
context:
space:
mode:
Diffstat (limited to 'jingle/notifier/base')
-rw-r--r--jingle/notifier/base/fake_ssl_client_socket_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/jingle/notifier/base/fake_ssl_client_socket_unittest.cc b/jingle/notifier/base/fake_ssl_client_socket_unittest.cc
index 72e9db6..6f9ac1d 100644
--- a/jingle/notifier/base/fake_ssl_client_socket_unittest.cc
+++ b/jingle/notifier/base/fake_ssl_client_socket_unittest.cc
@@ -96,8 +96,8 @@ class FakeSSLClientSocketTest : public testing::Test {
std::vector<net::MockWrite>* writes) {
static_socket_data_provider_.reset(
new net::StaticSocketDataProvider(
- &*reads->begin(), reads->size(),
- &*writes->begin(), writes->size()));
+ reads->empty() ? NULL : &*reads->begin(), reads->size(),
+ writes->empty() ? NULL : &*writes->begin(), writes->size()));
static_socket_data_provider_->set_connect_data(mock_connect);
mock_client_socket_factory_.AddSocketDataProvider(
static_socket_data_provider_.get());