Project Information
Repository:
https://github.com/Chooloo/call_manageProject Name: Koler
The issue submitted on GitHub:https://github.com/Chooloo/call_manage/issues/26
My github link: https://github.com/darewealth
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
Open the app
Click on the dial pad
Click on the call button, let it dial and cut the call
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:```