Last modified: 2014-05-02 22:58:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65986, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63986 - app crashes on {{disambiguation}} pages with no section headers
app crashes on {{disambiguation}} pages with no section headers
Status: RESOLVED WORKSFORME
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
Android (alpha)
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-16 02:31 UTC by Sage Ross
Modified: 2014-05-02 22:58 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sage Ross 2014-04-16 02:31:37 UTC
If a page has the {{disambiguation}} template, but it doesn't have any section headers, then the app crashes when the page is loaded.

For example, this happens on [[w:Great White North]].

I was able to replicate it like so: https://en.wikipedia.org/w/index.php?title=User:Ragesoss/test&oldid=604391998


Here's my crash report:
USER_COMMENT=tried to open article
ANDROID_VERSION=4.4.2
APP_VERSION_NAME=2.0-alpha-2014-04-11
BRAND=google
PHONE_MODEL=Nexus 5
CUSTOM_DATA=
STACK_TRACE=java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at org.wikipedia.page.PageViewFragment$2.onMessage(PageViewFragment.java:183)
at org.wikipedia.CommunicationBridge$2.handleMessage(CommunicationBridge.java:90)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
Comment 1 Sage Ross 2014-05-02 22:57:48 UTC
Don't know what the fix was, but this no longer crashes the app.
Comment 2 Yuvi Panda 2014-05-02 22:58:36 UTC
It actually crashed on all pages with just one section, this was fixed last week.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links