Index: google_apis/gaia/gaia_auth_util.cc |
diff --git a/google_apis/gaia/gaia_auth_util.cc b/google_apis/gaia/gaia_auth_util.cc |
index eba0d7b6724b85b5ae24f7ef4dbbaec7ebf7b2f9..c3cc764e8a988538b94fd3ac759b332aac91ad9c 100644 |
--- a/google_apis/gaia/gaia_auth_util.cc |
+++ b/google_apis/gaia/gaia_auth_util.cc |
@@ -25,8 +25,9 @@ std::string CanonicalizeEmailImpl(const std::string& email_address, |
char at = '@'; |
base::SplitString(email_address, at, &parts); |
if (parts.size() != 2U) { |
- NOTREACHED() << "expecting exactly one @, but got " << parts.size()-1 << |
- " : " << email_address; |
+ NOTREACHED() << "expecting exactly one @, but got " |
+ << (parts.empty() ? 0 : parts.size() - 1) |
+ << " : " << email_address; |
} else { |
if (change_googlemail_to_gmail && parts[1] == kGooglemailDomain) |
parts[1] = kGmailDomain; |