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
- Install and open the app
- 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.