Closed Bug 1216847 Opened 9 years ago Closed 9 years ago

Got Error in Cellular & Data panel when no SIM card is inserted

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED DUPLICATE of bug 1206471
tracking-b2g backlog

People

(Reporter: gasolin, Unassigned)

Details

When stepping into Cellular & Data with no SIM Card, got

TypeError: iccCard is null carrier.js:174:9 - 

https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/carrier.js#L174
Yura I can't reproduce it on flame or Aries, could you provide reproducible steps?
Flags: needinfo?(yzenevich)
(This issue is filed because the review comment from bug 1207471)
(In reply to Fred Lin [:gasolin] from comment #1)
> Yura I can't reproduce it on flame or Aries, could you provide reproducible
> steps?

Sure thing.

STRs (using current master):

* Open Settings app on Aries that does not have any SIM.
* Navigate to Cellular & Data section
* Observe in the console log:
  TypeError: iccCard is null at carrier.js:174:9

Looks like we assume that iccCard returned from _iccManager.getIccById(_mobileConnection.iccId) is not null which is not the case. Also note that for this case _mobileConnection.iccId is also null.
Flags: needinfo?(yzenevich)
@scott is this issue already addressed in bug 1206471?
Flags: needinfo?(scwwu)
Yes this will be fixed in bug 1206471.
Flags: needinfo?(scwwu)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.