https://bugzilla.wikimedia.org/show_bug.cgi?id=63986
Bug ID: 63986
Summary: app crashes on {{disambiguation}} pages with no
section headers
Product: Wikipedia App
Version: Android (alpha)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Generic
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
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)
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l