Skip to content

Crashes caused by empty Counter Step #3

Description

@slumdroid

Application crashes with the following stack traces when "Set Counter Step" is empty.

E/AndroidRuntime( 676): FATAL EXCEPTION: main
E/AndroidRuntime( 676): java.lang.IllegalStateException: Could not execute method of the activity
E/AndroidRuntime( 676): at android.view.View$1.onClick(View.java:3591)
E/AndroidRuntime( 676): at android.view.View.performClick(View.java:4084)
E/AndroidRuntime( 676): at android.view.View$PerformClick.run(View.java:16966)
E/AndroidRuntime( 676): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 676): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 676): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 676): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 676): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 676): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 676): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 676): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 676): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 676): at android.view.View$1.onClick(View.java:3586)
E/AndroidRuntime( 676): ... 11 more
E/AndroidRuntime( 676): Caused by: java.lang.NumberFormatException: Invalid int: ""
E/AndroidRuntime( 676): at java.lang.Integer.invalidInt(Integer.java:138)
E/AndroidRuntime( 676): at java.lang.Integer.parseInt(Integer.java:359)
E/AndroidRuntime( 676): at java.lang.Integer.parseInt(Integer.java:332)
E/AndroidRuntime( 676): at com.omegavesko.simplecounter.MainActivity.increment(MainActivity.java:68)
E/AndroidRuntime( 676): ... 14 more
W/ActivityManager( 149): Force finishing activity com.omegavesko.holocounter/com.omegavesko.simplecounter.MainActivity


E/AndroidRuntime( 676): FATAL EXCEPTION: main
E/AndroidRuntime( 676): java.lang.IllegalStateException: Could not execute method of the activity
E/AndroidRuntime( 676): at android.view.View$1.onClick(View.java:3591)
E/AndroidRuntime( 676): at android.view.View.performClick(View.java:4084)
E/AndroidRuntime( 676): at android.view.View$PerformClick.run(View.java:16966)
E/AndroidRuntime( 676): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 676): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 676): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 676): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 676): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 676): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 676): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 676): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 676): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 676): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 676): at android.view.View$1.onClick(View.java:3586)
E/AndroidRuntime( 676): ... 11 more
E/AndroidRuntime( 676): Caused by: java.lang.NumberFormatException: Invalid int: ""
E/AndroidRuntime( 676): at java.lang.Integer.invalidInt(Integer.java:138)
E/AndroidRuntime( 676): at java.lang.Integer.parseInt(Integer.java:359)
E/AndroidRuntime( 676): at java.lang.Integer.parseInt(Integer.java:332)
E/AndroidRuntime( 676): at com.omegavesko.simplecounter.MainActivity.decrement(MainActivity.java:96)
E/AndroidRuntime( 676): ... 14 more
W/ActivityManager( 149): Force finishing activity com.omegavesko.holocounter/com.omegavesko.simplecounter.MainActivity

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions