bug 1166759 - don't put nil values in POST data in Mac crash reporter. r=bsmedberg

This commit is contained in:
Ted Mielczarek 2015-05-21 14:03:43 -04:00
parent 4e9d0228af
commit aa45347abc

View File

@ -570,7 +570,14 @@ static bool RestartApplication()
i++) {
NSString* key = NSSTR(i->first);
NSString* value = NSSTR(i->second);
[parameters setObject: value forKey: key];
if (key && value) {
[parameters setObject: value forKey: key];
} else {
ostringstream message;
message << "Warning: skipping annotation '" << i->first
<< "' due to malformed UTF-8 encoding";
LogMessage(message.str());
}
}
for (StringTable::const_iterator i = gFiles.begin();