Skip to content

[Bug]: crash when trying to edit depicts #6593

@mnalis

Description

@mnalis

Summary

app crashes when trying to add depictions to existing image

Steps to reproduce

  1. Open Commons app
  2. select existing image
  3. click on edit button for "Depictions" (where none are originally added)
  4. select depiction from the list
  5. click "save"

Expected behaviour

depicts metadata of the image is updated

Actual behaviour

app crashes

Device name

Samsung Galaxy S23+

Android version

Android 15 (stock Samsung OneUI 7.0, but degoogled)

Commons app version

6.2.1

Device logs

USER_COMMENT=trying to add depicts on a existing image
APP_VERSION_CODE=1061
APP_VERSION_NAME=6.2.1
ANDROID_VERSION=15
PHONE_MODEL=SM-S916B
STACK_TRACE=java.lang.NullPointerException
        at fr.free.nrw.commons.UnsuccessfulResponseInterceptor.intercept(OkHttpConnectionFactory.kt:100)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:190)
        at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:45)
        at io.reactivex.Observable.subscribe(Observable.java:12267)
        at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:34)
        at io.reactivex.Observable.subscribe(Observable.java:12267)
        at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32)
        at io.reactivex.Observable.subscribe(Observable.java:12267)
        at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
        at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
        at java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
        at java.lang.Thread.run(Thread.java:1012)

Screenshots

small_Screen_Recording_20251231_205250_Commons.mp4

Would you like to work on the issue?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions