Skip to content

Application crashes when switching to landscape mode

Describe the bug

When rotating the device, the FFA application crashes.

How to reproduce

  1. Open FFA
  2. On the Artists view rotate the device to landscape mode
  3. Observe crash

Expected behavior

The app should not crash

Actual behavior

The app crashes

Screenshots

If applicable, add screenshots to help explain your problem.

Environment details

  • Device: Oneplus 9 Pro
  • Android version: 11
  • App version: 0.1.1-32-70feb589-develop (101032)
  • If public Funkwhale instance, its URL: -

Logs

java.lang.IllegalArgumentException: Target must not be null.
at com.squareup.picasso.RequestCreator.into(RequestCreator.java:682)
at com.squareup.picasso.RequestCreator.into(RequestCreator.java:665)
at audio.funkwhale.ffa.activities.MainActivity.refreshCurrentTrack(MainActivity.kt:499)
at audio.funkwhale.ffa.activities.MainActivity.access$refreshCurrentTrack(MainActivity.kt:81)

Edited by Ryan Harg