Bug 986440: Check for |radioTech| in |voiceRegistrationState|, r=htsai

When starting up RIL, |radioTech| in |voiceRegistrationState| is not
defined before we received REQUEST_VOICE_REGISTRATION_STATE. This
patch adds an extra test to avoid the respective error message.

--HG--
extra : rebase_source : 19927ec9a3892606d81f3209ea470ce297d927d7
This commit is contained in:
Thomas Zimmermann 2014-03-27 10:35:24 +01:00
parent 21da4b0c37
commit 22ff293288

View File

@ -3452,7 +3452,10 @@ RilObject.prototype = {
}
};
if (!this._isGsmTechGroup(this.voiceRegistrationState.radioTech)) {
// During startup, |radioTech| is not yet defined, so we need to
// check it separately.
if (("radioTech" in this.voiceRegistrationState) &&
!this._isGsmTechGroup(this.voiceRegistrationState.radioTech)) {
// CDMA RSSI.
// Valid values are positive integers. This value is the actual RSSI value
// multiplied by -1. Example: If the actual RSSI is -75, then this