java.lang.NullPointerException: Attempt to invoke virtual method 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' 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 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    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 '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