The application crashes when switching to landscape mode and click "OK".

Words
225
Reading
1 min
8y
Listen to this post
~2 min

Project Information



Expected behavior

Supposedly, the app does not crash when I switch to landscape mode and click "OK".

Actual behavior

When I click on "ADD ALL" then switch to landscape mode and click "OK", the application suddenly crashes.

How to reproduce

  • Install and open the app
  • Run the app and click "Palabre (RSS)".
  • Then, click "ADD ALL".
  • The next step, turn to landscape mode, then click "OK" then the application will crash.


  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 3.2.2

Recording Of The Bug

Proof of Work Done

https://github.com/apadet90

Logcat

05-28 23:22:34.128 27929 27929 E AndroidRuntime: FATAL EXCEPTION: main
05-28 23:22:34.128 27929 27929 E AndroidRuntime: Process: com.levelup.palabre, PID: 27929
05-28 23:22:34.128 27929 27929 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.levelup.palabre.data.i.d' on a null object reference
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at com.levelup.palabre.ui.c.a$1.onClick(CategoryDialog.java:140)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:162)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5527)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-28 23:22:34.128 27929 27929 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

The application crashes when switching to landscape mode and click ... | Ecency