The app crashes and exits by itself when clicking on the "Exchange" feature

in utopian-io •  7 years ago  (edited)

Project Information

Repository : https://github.com/KredsBlockchain/kreds-core/
Title : Kreds Wallet
Publisher : Kreds Blockchain

Expected behavior

Supposedly, when I click the "Exchange" feature the app will not get into error and will not exit by itself.
And if the feature has not been activated, then it should be when the user clicks on the feature, then the feature can not be opened and does not crash. Different as I found out.

Actual behavior

When I open the app and accidentally click the "Exchange" feature, the app suddenly crashes and exits by itself.

How to reproduce

  1. Install and open the app
  2. If you are already on the app home page, click on the "Exchange (Disable)" feature located on the three-line menu.
    Next you will find the error as I experienced

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

Recording Of The Bug

Proof of Work Done

Submitted the issue on GitHub: Click here
My GitHub Profile: https://github.com/ahyar92

Logcat

05-21 16:22:15.896 32694 32694 E AndroidRuntime: FATAL EXCEPTION: main
05-21 16:22:15.896 32694 32694 E AndroidRuntime: Process: com.kreds.wallet, PID: 32694
05-21 16:22:15.896 32694 32694 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kreds.wallet/com.coinomi.wallet.ui.TradeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.coinomi.core.util.MonetaryFormat com.coinomi.core.coins.CoinType.getMonetaryFormat()' on a null object reference
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2449)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread.access$1000(ActivityThread.java:153)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5527)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
05-21 16:22:15.896 32694 32694 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.coinomi.core.util.MonetaryFormat com.coinomi.core.coins.CoinType.getMonetaryFormat()' on a null object reference
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at com.coinomi.wallet.ui.TradeSelectFragment.setDestination(TradeSelectFragment.java:747)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at com.coinomi.wallet.ui.TradeSelectFragment.onCreateView(TradeSelectFragment.java:214)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:602)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1238)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.Activity.performStart(Activity.java:6320)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)
05-21 16:22:15.896 32694 32694 E AndroidRuntime:    ... 9 more
05-21 16:22:15.911 32694 32694 E MQSEventManagerDelegate: failed to get MQSService.
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello @ahyar92. Thank you for providing this much details to your report. This is actually what i call good contribution :).

It seems the report you made is not on the latest version of the app, the latest version is 1.0.0.5 which can be downloaded here

However, the bug seems to exist on the latest version of the app which is quiet weird and i believe the PO need to investigate more on this behavior.

Your contribution has been evaluated according to Utopian rules 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]

Thank you sir @knowledges

Hey @ahyar92
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!