java.lang.NullPointerException

Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.w.a(java.lang.String, org.json.JSONObject)' on a null object reference at com.sample.app.activities.SampleActivity.**com.mixpanel.android.mpmetrics.MixpanelAPI.track**(SampleActivity.java:1541)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21204

  • via GitHub by DuM4ll3
    , 10 months ago
    Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.w.a(java.lang.String, org.json.JSONObject)' on a null object reference at com.sample.app.activities.SampleActivity.**com.mixpanel.android.mpmetrics.MixpanelAPI.track**(SampleActivity.java:1541)
  • Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.MixpanelAPI.track(java.lang.String, org.json.JSONObject)' on a null object reference
  • Attempt to invoke virtual method 'void bht.a(java.lang.String, org.json.JSONObject)' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.w.a(java.lang.String, org.json.JSONObject)' on a null object reference at com.sample.app.activities.SampleActivity.**com.mixpanel.android.mpmetrics.MixpanelAPI.track**(SampleActivity.java:1541) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1239) at android.app.Activity.performStart(Activity.java:6057) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394) at android.app.ActivityThread.access$800(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5276) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    2 times, 1 month ago
    Unknown user
    Once, 4 months ago
    Unknown user
    Once, 5 months ago
    31 times, 6 months ago
    Unknown user
    Once, 7 months ago
    80 more bugmates