Bug 826297 - Catch exceptions. r=sicking
authorHubert Figuière <hfiguiere@mozilla.com>
Fri, 04 Jan 2013 11:27:29 -0500
changeset 117737 a55044631d140b83ad2f5cd07037972b850d59db
parent 117736 07fa18b4c450d3289519e60fa3592a644857d2c3
child 117738 1be4b28a143d1272f5ab6c62dbf80c7f0c8deb88
push id24110
push userphilringnalda@gmail.com
push dateSat, 05 Jan 2013 23:57:49 +0000
treeherdermozilla-central@20d1a5916ef6 [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":