java.lang.NullPointerException

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

Solutions on the web21081

  • Attempt to invoke virtual method 'long com.newrelic.agent.android.harvest.HarvestTimer.timeSinceStart()' on a null object reference
  • via Stack Overflow by iaindownie
    , 4 weeks ago
    Attempt to invoke virtual method 'long android.content.Intent.getLongExtra(java.lang.String, long)' on a null object reference
  • Attempt to invoke virtual method 'long android.content.Intent.getLongExtra(java.lang.String, long)' on a null object reference
  • Stack trace

    • 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(Harvest.java) at com.newrelic.agent.android.AndroidAgentImpl.getSessionDurationMillis(AndroidAgentImpl.java) at com.newrelic.agent.android.analytics.AnalyticsControllerImpl.addEvent(AnalyticsControllerImpl.java) at com.newrelic.agent.android.analytics.AnalyticsControllerImpl.addEvent(AnalyticsControllerImpl.java) at com.newrelic.agent.android.analytics.AnalyticsControllerImpl.recordEvent(AnalyticsControllerImpl.java) at com.newrelic.agent.android.NewRelic.recordEvent(NewRelic.java) at com.munkyfun.androidplugin.NewRelicGlue.NewRelic_RecordEvent(NewRelicGlue.java)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.