Page MenuHomePhabricator

Crash when clicking “Learn more about article descriptions” before page finishes loading
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Tap Edit article description on any article.
  • While the page is still loading (before all UI is initialized), quickly tap the “Learn more about article descriptions” button.
  • The app crashes.

What happens?:
The app crashes due to an uninitialized lateinit property (action) in DescriptionEditView.

What should have happened instead?:
The app should wait for the view to fully initialize or safely handle the click event, even if the page is still loading.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Wikipedia2.7.50529

Other information (browser name/version, screenshots, etc.):
Crash Log:
FATAL EXCEPTION: main
Process: org.wikipedia.alpha, PID: 16323
kotlin.UninitializedPropertyAccessException: lateinit property action has not been initialized
at org.wikipedia.descriptions.DescriptionEditView._init_$lambda$7(DescriptionEditView.kt:112)
at org.wikipedia.descriptions.DescriptionEditView.$r8$lambda$pajMlR3-B3XWFHDFPYrBEnoncrU(Unknown Source:0)
at org.wikipedia.descriptions.DescriptionEditView$$ExternalSyntheticLambda14.onClick(D8$$SyntheticClass:0)
at android.view.View.performClick(View.java:7659)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1218)
at android.view.View.performClickInternal(View.java:7636)
at android.view.View$PerformClick.run(View.java:30156)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Event Timeline

AlvinDulle subscribed.
This comment was removed by AlvinDulle.
ABorbaWMF subscribed.

Appears to be fixed on 2.7.50544-r-2025-08-11

Tested on Pixel 6 on Android 15 and OnePlus 8 on Android 13. Tested on multiple articles short descriptions.