Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set home to tablet location crash #40

Open
jjblum opened this issue Mar 13, 2017 · 1 comment
Open

set home to tablet location crash #40

jjblum opened this issue Mar 13, 2017 · 1 comment
Labels

Comments

@jjblum
Copy link
Contributor

jjblum commented Mar 13, 2017

AndroidRuntime [E] FATAL EXCEPTION: main
AndroidRuntime [E] Process: com.platypus.android.tablet, PID: 4357
AndroidRuntime [E] java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
AndroidRuntime [E] at com.platypus.android.tablet.TeleOpPanel$20.onClick(TeleOpPanel.java:1995)
AndroidRuntime [E] at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:162)
AndroidRuntime [E] at android.os.Handler.dispatchMessage(Handler.java:102)
AndroidRuntime [E] at android.os.Looper.loop(Looper.java:135)
AndroidRuntime [E] at android.app.ActivityThread.main(ActivityThread.java:5466)
AndroidRuntime [E] at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime [E] at java.lang.reflect.Method.invoke(Method.java:372)
AndroidRuntime [E] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:984)
AndroidRuntime [E] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

@jjblum jjblum added the bug label Mar 13, 2017
@christomaszewski
Copy link
Member

Looks like we need a check to see if the location has been acquired by the tablet. Tried to replicate this on my setup but the tablet got a location and set home worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants