java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

newrelic.com | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NPE in recordEvent (Android) - Android - New Relic Online Technical Community

    newrelic.com | 6 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

      at com.newrelic.agent.android.analytics.AnalyticsControllerImpl.recordEvent()
    2. com.newrelic.agent
      NewRelic.recordEvent
      1. com.newrelic.agent.android.analytics.AnalyticsControllerImpl.recordEvent(AnalyticsControllerImpl.java:786)
      2. com.newrelic.agent.android.NewRelic.recordEvent(NewRelic.java:744)
      2 frames
    3. com.ebay.napp
      ItemDetailActivity.onCreate
      1. com.ebay.napp.tracking.impl.NewRelicImpl.trackEvents(NewRelicImpl.java:49)
      2. com.ebay.napp.util.TrackingUtils.track(TrackingUtils.java:64)
      3. com.ebay.napp.feed.itemdetail.activities.ItemDetailActivity.onCreate(ItemDetailActivity.java:127)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5990)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
      5. android.app.ActivityThread.access$800(ActivityThread.java:151)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5254)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames