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

Update existing contact throwing an error (Android Only) #30

Open
OPADA-Eng opened this issue Jul 13, 2017 · 2 comments
Open

Update existing contact throwing an error (Android Only) #30

OPADA-Eng opened this issue Jul 13, 2017 · 2 comments

Comments

@OPADA-Eng
Copy link

OPADA-Eng commented Jul 13, 2017

Hi, Thanks for your plugin.
I have an issue only on Android devices occurs in this line:
contact.save();
throw this error:

Error: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
JS: android.content.ContentUris.parseId(ContentUris.java:85)
JS: com.tns.Runtime.callJSMethodNative(Native Method)
JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1021)
JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:903)
JS: com.tns.Runtime.callJSMethod(Runtime.java:890)
JS: com.tns.Runtime.callJSMethod(Runtime.java:874)
JS: com.tns.Runtime.callJSMethod(Runtime.java:866)
JS: com.tns.NativeScriptActivity.onActivityResult(NativeScriptActivity.java:69)
JS: android.app.Activity.dispatchActivityResult(Activity.java:6428)
JS: android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
JS: android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
JS: android.app.ActivityThread.-wrap16(ActivityThread.java)
JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
JS: android.os.Handler.dispatchMessage(Handler.java:102)
JS: android.os.Looper.loop(Looper.java:148)
JS: android.app.ActivityThread.main(ActivityThread.java:5417)
JS: java.lang.reflect.Method.invoke(Native Method)
JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

when trying to update an existing contact.
I've tested on Android v6.0.0 and 7.0.0
in the attachments bellow test code generate the issue.
Thanks in advanced.
my-contacts.zip

@cfjedimaster
Copy link
Contributor

I'm seeing this now as well. It seems to save the contact ok but I'm only changing the photo.

@Amira-tageldin
Copy link

Amira-tageldin commented Sep 2, 2021

I am seeing issue now as well
:(
Did anyone find a solution for this issue?

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

3 participants