Closed
Bug 930163
Opened 11 years ago
Closed 11 years ago
crash in java.lang.NullPointerException: at org.mozilla.gecko.home.TwoLinePageRow.updateFromCursor(TwoLinePageRow.java)
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox27 affected, firefox28 affected, fennec27+)
RESOLVED
WORKSFORME
People
(Reporter: aaronmt, Unassigned)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
1.22 KB,
patch
|
lucasr
:
review-
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-4793b55e-4c7f-469a-a915-cfb182131023.
=============================================================
java.lang.NullPointerException
at org.mozilla.gecko.home.TwoLinePageRow.updateFromCursor(TwoLinePageRow.java:207)
at org.mozilla.gecko.home.BookmarksListAdapter.bindView(BookmarksListAdapter.java:193)
at org.mozilla.gecko.home.MultiTypeCursorAdapter.getView(MultiTypeCursorAdapter.java:62)
at android.widget.AbsListView.obtainView(AbsListView.java:2350)
Comment 1•11 years ago
|
||
Attachment #821895 -
Flags: review?(lucasr.at.mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 821895 [details] [diff] [review]
Patch
Review of attachment 821895 [details] [diff] [review]:
-----------------------------------------------------------------
I'm uneasy with just adding these null checks without understanding the real cause of these crashes. For instance, the row with a null URL will probably look broken and not work at all. What would be the point of working around the NPE?
I'd like to hear a better reason for why this is better than simply exposing the bug (and fixing the real cause) before giving r+.
Attachment #821895 -
Flags: review?(lucasr.at.mozilla) → review-
Comment 3•11 years ago
|
||
I'll wait for steps needed then. This is hard to speculate what could go wrong to cause this issue.
Comment 4•11 years ago
|
||
Nothing should ever be setting a bookmark URL to null, but it's not a NOT NULL column, so it's not impossible.
I don't think waiting for steps will help -- this could be the result of an import from the Android browser, a weird Sync result (unlikely, but possible), or even a JNI add-on. Those things aren't going to happen in routine QA.
Sriram: spend some time trying to find how nulls could leak into the DB this way?
Comment 5•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #4)
> Nothing should ever be setting a bookmark URL to null, but it's not a NOT
> NULL column, so it's not impossible.
>
> I don't think waiting for steps will help -- this could be the result of an
> import from the Android browser, a weird Sync result (unlikely, but
> possible), or even a JNI add-on. Those things aren't going to happen in
> routine QA.
>
> Sriram: spend some time trying to find how nulls could leak into the DB this
> way?
Agree. This bug seems to have the same root cause than bug 883500 i.e. null URLs coming from the DB. The crash just happens at a different point here because in we're using TextUtils.equals() in Beta, instead of url.equals().
Based on the crash comments in bug 883500, this seems to be happening more often while scrolling bookmarks. Sriram, maybe start from there?
Flags: needinfo?(sriram)
Updated•11 years ago
|
status-firefox27:
--- → affected
status-firefox28:
--- → affected
Updated•11 years ago
|
tracking-fennec: --- → ?
Updated•11 years ago
|
tracking-fennec: ? → 26+
Updated•11 years ago
|
tracking-fennec: 26+ → 27+
Updated•11 years ago
|
tracking-fennec: ? → 27+
Comment 6•11 years ago
|
||
I don't see this signature any more.
https://crash-stats.mozilla.com/query/?product=Fennec&version=ALL%3AALL&range_value=4&range_unit=weeks&query_search=signature&query_type=contains&query=java.lang.NullPointerException%3A+at+org.mozilla.gecko.home.TwoLinePageRow.updateFromCursor&reason=&release_channels=&build_id=&process_type=any&hang_type=any
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•11 years ago
|
Flags: needinfo?(sriram.mozilla)
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
Comment 7•2 years ago
|
||
Removing steps-wanted
keyword because this bug has been resolved.
Keywords: steps-wanted
Comment 8•2 years ago
|
||
Removing steps-wanted
keyword because this bug has been resolved.
You need to log in
before you can comment on or make changes to this bug.
Description
•