Kyson / AndroidGodEye

An app performance monitor(APM) , like "Android Studio profiler", you can easily monitor the performance of your app real time in browser
Apache License 2.0
2.6k stars 344 forks source link

(BUG AndroidGodEye version 6.0 ) The Application crashes when i click on Block option #43

Closed friendsmobile closed 5 years ago

friendsmobile commented 5 years ago

Project Information

Expected behavior

after opening the application when I click on Block option the Application should not crash

Actual behavior

The Application crashes when I click on Block option

How to reproduce

Recording Of The Bug

20190723_144739

Logcat

E/AndroidRuntime(19687): FATAL EXCEPTION: main

E/AndroidRuntime(19687): Process: cn.hikyson.godeyedemo, PID: 19687

E/AndroidRuntime(19687): java.lang.IllegalStateException: Could not execute method of the activity

E/AndroidRuntime(19687):    at android.view.View$1.onClick(View.java:4135)

E/AndroidRuntime(19687):    at android.view.View.performClick(View.java:5076)

E/AndroidRuntime(19687):    at android.view.View$PerformClick.run(View.java:20279)

E/AndroidRuntime(19687):    at android.os.Handler.handleCallback(Handler.java:739)

E/AndroidRuntime(19687):    at android.os.Handler.dispatchMessage(Handler.java:95)

E/AndroidRuntime(19687):    at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime(19687):    at android.app.ActivityThread.main(ActivityThread.java:5910)

E/AndroidRuntime(19687):    at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(19687):    at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(19687):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)

E/AndroidRuntime(19687):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

E/AndroidRuntime(19687): Caused by: java.lang.reflect.InvocationTargetException

E/AndroidRuntime(19687):    at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(19687):    at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(19687):    at android.view.View$1.onClick(View.java:4130)

E/AndroidRuntime(19687):    ... 10 more

E/AndroidRuntime(19687): Caused by: java.lang.NumberFormatException: Invalid long: ""

E/AndroidRuntime(19687):    at java.lang.Long.invalidLong(Long.java:124)

E/AndroidRuntime(19687):    at java.lang.Long.parseLong(Long.java:345)

E/AndroidRuntime(19687):    at java.lang.Long.parseLong(Long.java:321)

E/AndroidRuntime(19687):    at cn.hikyson.godeyedemo.MainActivity.block(MainActivity.java:92)
Kyson commented 5 years ago

Sorry for this bug. I know it is not reasonable but you must input a number in EditText, then click the block Button, hope it is helpful :-)

friendsmobile commented 5 years ago

yes your are right this is not bug thanks your feedback

Kyson commented 5 years ago

Anyway ,i fix it in the latest version, thx for your feedback