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

crash happened in PebbleDictionary class #6

Open
KevinYaoooooo opened this issue Apr 23, 2016 · 3 comments
Open

crash happened in PebbleDictionary class #6

KevinYaoooooo opened this issue Apr 23, 2016 · 3 comments

Comments

@KevinYaoooooo
Copy link

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int com.getpebble.android.kit.util.PebbleTuple$TupleType.ordinal()' on a null object reference
at com.getpebble.android.kit.util.PebbleDictionary.fromJson(PebbleDictionary.java:320)
at com.getpebble.android.kit.PebbleKit$PebbleDataReceiver.onReceive(PebbleKit.java:552)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:885)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@sjp4
Copy link

sjp4 commented Apr 25, 2016

@Kevin-Misfit Thanks for the report. Are you using PebbleKit v3.1.0, which was released last week? This issue should be fixed in that version

@KevinYaoooooo
Copy link
Author

KevinYaoooooo commented Apr 26, 2016

Ok, may i ask why the crash happened and how can i reproduce it? i just wanna make sure the problem is not caused from our side and verify this issue is surely fixed.

@sjp4
Copy link

sjp4 commented Apr 26, 2016

The crash was seen in some Locales (e.g. Turkish) due to a fault in processing inbound messages from the watch, because of Locale-specific String processing inside the PebbleKit library

jay3 added a commit to jay3/Ventoo-AndroidApp that referenced this issue Aug 23, 2017
May fix crashes with turkish locale
=> pebble/pebble-android-sdk#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants