After clicking the "Rename" feature and rotating the rotation to landscape mode the app crashes.

in #utopian-io6 years ago

Project Information

Expected behavior

Supposedly, the app does not crash when I click on the "Rename" feature and rotate the rotation to landscape mode.

Actual behavior

When I click on the "Rename" feature and rotate the rotation in landscape mode, the app suddenly crashes.

How to reproduce

  1. Install app on Play Store
  2. Then, open the app and click on the three line icon located above the left side of the android screen
  3. Click on the "Manage Sources" feature and click back on the three-point icon located in front of "News"
  4. The final step, click "Rename" and change the rotation to landscape mode, then the same problem you will find (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/scorpioons

Logcat

05-28 23:45:47.898 2194 2194 E AndroidRuntime: FATAL EXCEPTION: main
05-28 23:45:47.898 2194 2194 E AndroidRuntime: Process: com.levelup.palabre, PID: 2194
05-28 23:45:47.898 2194 2194 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.levelup.palabre/com.levelup.palabre.ui.activity.ManageSourcesActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.levelup.palabre.data.d.a' on a null object reference
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2449)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4120)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:153)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5527)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.levelup.palabre.data.d.a' on a null object reference
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at com.levelup.palabre.ui.c.d.onCreateDialog(RenameDialog.java:70)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.DialogFragment.onGetLayoutInflater(DialogFragment.java:310)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.Fragment.performGetLayoutInflater(Fragment.java:1231)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1419)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3217)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3171)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:192)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:560)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at com.levelup.palabre.ui.activity.a.onStart(PalabreActivity.java:60)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1238)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:6320)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)
05-28 23:45:47.898 2194 2194 E AndroidRuntime: ... 10 more

Sort:  

Thanks for contributing to Utopian!

Following the steps you provided I couldn't reproduce the bug. What I did find is that rotating while renaming causes the app to show it's home screen again, and not to crash completely, on both of my devices. Since it does produce a bug (even if not exactly the one you describe), it's a valid issue.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @scorpioons
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!