Bug 794767 - B2G RIL: Handle data call error without APN name. r=vicamo
authorShian-Yow Wu <swu@mozilla.com>
Tue, 02 Oct 2012 18:48:00 +0800
changeset 115186 7897fb9e2563162c391049f494fde1116861a608
parent 115185 a16dfb364f8cc690b36948cc2e628601c59b56a9
child 115187 9a3537526360eec7baef4ad760fc295448e5a3aa
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs794767
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 794767 - B2G RIL: Handle data call error without APN name. r=vicamo
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -3116,17 +3116,19 @@ let RIL = {
     this.sendDOMMessage(message);
   },
 
   _processDataCallList: function _processDataCallList(datacalls, newDataCallOptions) {
     // Check for possible PDP errors: We check earlier because the datacall
     // can be removed if is the same as the current one.
     for each (let newDataCall in datacalls) {
       if (newDataCall.status != DATACALL_FAIL_NONE) {
-        newDataCall.apn = newDataCallOptions.apn;
+        if (newDataCallOptions) {
+          newDataCall.apn = newDataCallOptions.apn;
+        }
         this._sendDataCallError(newDataCall, newDataCall.status);
       }
     }
 
     for each (let currentDataCall in this.currentDataCalls) {
       let updatedDataCall;
       if (datacalls) {
         updatedDataCall = datacalls[currentDataCall.cid];