Bug 927406 - check whether we've updated _slowSQLStartup before using its fields; r=vladan

This commit is contained in:
Nathan Froyd 2013-10-15 08:55:03 -04:00
parent d3528984b7
commit 6a3c733e80

View File

@ -549,8 +549,9 @@ TelemetryPing.prototype = {
info: info
};
if (Object.keys(this._slowSQLStartup.mainThread).length
|| Object.keys(this._slowSQLStartup.otherThreads).length) {
if (Object.keys(this._slowSQLStartup).length != 0 &&
(Object.keys(this._slowSQLStartup.mainThread).length ||
Object.keys(this._slowSQLStartup.otherThreads).length)) {
payloadObj.slowSQLStartup = this._slowSQLStartup;
}