diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 21:50:49 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 21:50:49 +0000 |
commit | b27df9f96cfc157f64e8be58acfe6741014ff2e6 (patch) | |
tree | 8fdbfd2c44532a1199d10be4cbd9d6654734c42d /jingle/notifier/base | |
parent | ba77ffb9b2fb7fac0d0de46e62a83ae823a9187d (diff) | |
download | chromium_src-b27df9f96cfc157f64e8be58acfe6741014ff2e6.zip chromium_src-b27df9f96cfc157f64e8be58acfe6741014ff2e6.tar.gz chromium_src-b27df9f96cfc157f64e8be58acfe6741014ff2e6.tar.bz2 |
[Jingle] Fix deref of begin() for empty vector in unit test.
BUG=55427
TEST=
Review URL: http://codereview.chromium.org/6837033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle/notifier/base')
-rw-r--r-- | jingle/notifier/base/fake_ssl_client_socket_unittest.cc | 4 |
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()); |