platypusllc / tablet

Source code for Platypus tablet android app
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

"start waypoints" before very first waypoint causes crash #41

Open jjblum opened 7 years ago

jjblum commented 7 years ago

Once you create a waypoint and clear it, then the Toast warning pops up correctly. But if you hit start waypoints, after connecting phone but before creating any first waypoint, the app crashes:

AndroidRuntime [E] FATAL EXCEPTION: Thread-1991
AndroidRuntime [E] Process: com.platypus.android.tablet, PID: 4639
AndroidRuntime [E] java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.ArrayList com.platypus.android.tablet.Path.Path.getPoints()' on a null object reference
AndroidRuntime [E] at com.platypus.android.tablet.TeleOpPanel$35.run(TeleOpPanel.java:2563)

christomaszewski commented 7 years ago

I can replicate this bug on my setup.