Closed
Bug 596282
Opened 14 years ago
Closed 14 years ago
Error in the js console if fullcount does not exists
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
Details
Attachments
(1 file, 1 obsolete file)
1.15 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
I've encountered this case with my gmail account (that I never really used) result page I've on my gmail account: https://mail.google.com/mail/feed/atomLine:%201
Attachment #475125 -
Flags: review?(mark.finkle)
Comment 1•14 years ago
|
||
Comment on attachment 475125 [details] [diff] [review] Patch >- this._lastCount = req.responseXML.getElementsByTagName("fullcount")[0].childNodes[0].nodeValue; >+ let count = req.responseXML.getElementsByTagName("fullcount"); >+ if (count) >+ this._lastCount = count[0].childNodes[0].nodeValue; What about setting to 0 if no fullcount? this._lastCount = count ? count[0].childNodes[0].nodeValue : 0; how's that?
Assignee | ||
Comment 2•14 years ago
|
||
(In reply to comment #1) > Comment on attachment 475125 [details] [diff] [review] > Patch > > >- this._lastCount = req.responseXML.getElementsByTagName("fullcount")[0].childNodes[0].nodeValue; > >+ let count = req.responseXML.getElementsByTagName("fullcount"); > >+ if (count) > >+ this._lastCount = count[0].childNodes[0].nodeValue; > > What about setting to 0 if no fullcount? > > this._lastCount = count ? count[0].childNodes[0].nodeValue : 0; > > how's that? wfm
Comment 3•14 years ago
|
||
you patch or me patch?
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #475125 -
Attachment is obsolete: true
Attachment #475833 -
Flags: review?(mark.finkle)
Attachment #475125 -
Flags: review?(mark.finkle)
Comment 5•14 years ago
|
||
Comment on attachment 475833 [details] [diff] [review] Patch v0.2 Clear to land for b1
Attachment #475833 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/a292fad385ac
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•