Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Attempt to do a synchronize operation on a null object #230

Open
sryze opened this issue Apr 18, 2020 · 0 comments
Open

Attempt to do a synchronize operation on a null object #230

sryze opened this issue Apr 18, 2020 · 0 comments

Comments

@sryze
Copy link

sryze commented Apr 18, 2020

Exception on Android:

2020-04-18 14:46:31.139 8659-8765/com.myapp E/unknown:ReactNative: Exception in native call
    java.lang.NullPointerException: Attempt to do a synchronize operation on a null object
        at com.kevinejohn.RNMixpanel.RNMixpanelModule.identify(RNMixpanelModule.java:206)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:193)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
        at java.lang.Thread.run(Thread.java:764)
2020-04-18 14:46:31.146 8659-8765/com.myapp E/unknown:ReactNative: Exception in native call
    java.lang.NullPointerException: Attempt to do a synchronize operation on a null object
        at com.kevinejohn.RNMixpanel.RNMixpanelModule.trackWithProperties(RNMixpanelModule.java:184)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:193)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
        at java.lang.Thread.run(Thread.java:764)

Version: 1.2.0

It happens when API credeitnals are missing

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

No branches or pull requests

1 participant