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

newrelic.com | 5 months ago
  1. 0

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

    newrelic.com | 5 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
  2. 0
    samebug tip
    The resource was accessed after it was dismissed.
  3. 0
    samebug tip
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Use 'dialog' to access views from custom_layout layout.
  6. 0

    Transaction between fragments with FragmentManager

    Stack Overflow | 3 months ago | Anonimo Anonimus
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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