java.lang.NullPointerException: Attempt to invoke virtual method 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' 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 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' on a null object reference

      at com.newrelic.agent.android.harvest.Harvest.getMillisSinceStart()
    2. com.newrelic.agent
      NewRelic.recordEvent
      1. com.newrelic.agent.android.harvest.Harvest.getMillisSinceStart(Harvest.java)
      2. com.newrelic.agent.android.AndroidAgentImpl.getSessionDurationMillis(AndroidAgentImpl.java)
      3. com.newrelic.agent.android.analytics.AnalyticsControllerImpl.addEvent(AnalyticsControllerImpl.java)
      4. com.newrelic.agent.android.analytics.AnalyticsControllerImpl.addEvent(AnalyticsControllerImpl.java)
      5. com.newrelic.agent.android.analytics.AnalyticsControllerImpl.recordEvent(AnalyticsControllerImpl.java)
      6. com.newrelic.agent.android.NewRelic.recordEvent(NewRelic.java)
      6 frames
    3. com.munkyfun.androidplugin
      NewRelicGlue.NewRelic_RecordEvent
      1. com.munkyfun.androidplugin.NewRelicGlue.NewRelic_RecordEvent(NewRelicGlue.java)
      1 frame