BasicAirData / GPSLogger

A GPS logger for Android mobile devices
http://www.basicairdata.eu/projects/android/android-gps-logger/
GNU General Public License v3.0
403 stars 126 forks source link

Bug Report - java.lang.ArithmeticException at GPSApplication.java:243 #70

Closed GrazianoCapelli closed 5 years ago

GrazianoCapelli commented 5 years ago

java.lang.ArithmeticException: at eu.basicairdata.graziano.gpslogger.GPSApplication$5.run (GPSApplication.java:243) at android.os.Handler.handleCallback (Handler.java:836) at android.os.Handler.dispatchMessage (Handler.java:103) at android.os.Looper.loop (Looper.java:203) at android.app.ActivityThread.main (ActivityThread.java:6251) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1075) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)

GrazianoCapelli commented 5 years ago

You can reproduce it by pressing 2 buttons on the Actionmode Toolbar: the second button will start a job with a total amount of 0 points, that goes at the line 243 in a division by zero. A flag must be added in order to avoid to start more than one operation.