I keep getting this error in my google log. Can anyone point me in the direction of how to decipher the problem here.
crash is:
Exception class
java.lang.NumberFormatException
Source method
FloatingPointParser.parseDouble()
java.lang.NumberFormatException:
at org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:267)
at java.lang.Double.parseDouble(Double.java:318)
at com.pipe.fittings.kevin.EqualSpreadOffset$1.onClick(EqualSpreadOffset.java:283)
at android.view.View.performClick(View.java:2532)
at android.view.View$PerformClick.run(View.java:9293)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4306)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Thanx all.
By looking at your stacktrace, it looks like you should examine the line:
I’m guessing (like the others here) that your attempting to convert something that is not a number into a number and it is throwing an exception.
The $1 indicates that the error is occurring the the first anonymous class within the class EqualSpreadOffset. I will go out on a limb here and guess that it is probably a user entered field that is not properly validated before it is passed to your onClick method handler.