Bug: Koler[V, 0.3.1]The app crashed when I use the call icon to call out without imputing any number.

in utopian-io •  6 years ago 

Project Information

Describe the bug

The behavior is a bit strange because it affects two things. Sometimes when I just click the call function without adding any number, the app will crash. Other regular behavior is when I click the call function to dial out, which it will dial a certain unknown number. Then if I stop the call, and dial back after 10 secs, the app will crash.

To Reproduce

  1. Open the app

  2. Click on the dial pad

  3. Click on the call button, let it dial and cut the call

  4. Wait for some seconds. Maybe 10sec or more and re-click again.

Expected behavior

Crash causes hinderances and I don't expect to encounter one while performing such activity in the app.

Screenshots

Smartphone

  • Device: [Gionee X1]

  • OS: [7.0]

  • Version [0.3.1]

Log

06-19 18:50:30.930 16342 16342 E AndroidRuntime: Process: com.chooloo.www.callmanager, PID: 16342
06-19 18:50:30.930 16342 16342 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.chooloo.www.callmanager/com.chooloo.www.callmanager.ui.activity.OngoingCallActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread.-wrap11(ActivityThread.java)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5452)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)
06-19 18:50:30.930 16342 16342 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at com.chooloo.www.callmanager.util.CallManager.getDisplayContact(CallManager.java:221)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at com.chooloo.www.callmanager.ui.activity.OngoingCallActivity.displayInformation(OngoingCallActivity.java:522)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at com.chooloo.www.callmanager.ui.activity.OngoingCallActivity.onCreate(OngoingCallActivity.java:199)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:6305)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
06-19 18:50:30.930 16342 16342 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
06-19 18:50:```
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:  

Hi @darewealth, thanks for making this contribution.

The log is pretty precise and can still be supported with a detailed explanation. I see the PO has given the ticket the bug label. Hopefully a fix is in the works. A partial fix will be to include a catch block for when no number is entered before dial.

Good of you to have shared this. I look forward to more of your reports.

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? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hi @darewealth!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @darewealth!

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

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

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

Vote for Utopian Witness!