Bug 826297 - Catch exceptions. r=sicking
authorHubert Figuière <hfiguiere@mozilla.com>
Fri, 04 Jan 2013 11:27:29 -0500
changeset 126839 a55044631d140b83ad2f5cd07037972b850d59db
parent 126838 07fa18b4c450d3289519e60fa3592a644857d2c3
child 126840 1be4b28a143d1272f5ab6c62dbf80c7f0c8deb88
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs826297
milestone20.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 826297 - Catch exceptions. r=sicking
dom/system/gonk/RILContentHelper.js
--- a/dom/system/gonk/RILContentHelper.js
+++ b/dom/system/gonk/RILContentHelper.js
@@ -879,17 +879,19 @@ RILContentHelper.prototype = {
         if (this.cardState != msg.json.cardState) {
           this.cardState = msg.json.cardState;
           Services.obs.notifyObservers(null, kCardStateChangedTopic, null);
         }
         break;
       case "RIL:IccInfoChanged":
         this.updateICCInfo(msg.json, this.iccInfo);
         if (this.iccInfo.mcc) {
-          Services.prefs.setIntPref("ril.lastKnownMcc", this.iccInfo.mcc);
+          try {
+            Services.prefs.setIntPref("ril.lastKnownMcc", this.iccInfo.mcc);
+          } catch (e) {}
         }
         Services.obs.notifyObservers(null, kIccInfoChangedTopic, null);
         break;
       case "RIL:VoiceInfoChanged":
         this.updateConnectionInfo(msg.json, this.voiceConnectionInfo);
         Services.obs.notifyObservers(null, kVoiceChangedTopic, null);
         break;
       case "RIL:DataInfoChanged":