Bug 827733 - JavaScript Error: "oldIcc is null". r=allstars.chh

This commit is contained in:
Edgar Chen 2013-01-08 20:40:00 +08:00
parent 8352929fc9
commit 1d6e00aeea

View File

@ -1613,7 +1613,8 @@ RadioInterfaceLayer.prototype = {
this._sendTargetMessage("mobileconnection", "RIL:IccInfoChanged", message);
// If spn becomes available, we should check roaming again.
if (!oldIcc.spn && message.spn) {
let oldSpn = oldIcc ? oldIcc.spn : null;
if (!oldSpn && message.spn) {
let voice = this.rilContext.voice;
let data = this.rilContext.data;
let voiceRoaming = voice.roaming;