java.lang.NullPointerException: Attempt to invoke virtual method 'void com.newrelic.agent.android.tracing.TraceMachine.completeActivityTrace()' on a null object reference

Stack Overflow | CM1 | 7 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

    How to resolve new relic NullPointerException in React Native Activity

    Stack Overflow | 7 months ago | CM1
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.newrelic.agent.android.tracing.TraceMachine.completeActivityTrace()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.newrelic.agent.android.tracing.TraceMachine.completeActivityTrace()' on a null object reference

      at com.newrelic.agent.android.tracing.TraceMachine.enterMethod()
    2. com.newrelic.agent
      BitmapFactoryInstrumentation.decodeStream
      1. com.newrelic.agent.android.tracing.TraceMachine.enterMethod(TraceMachine.java:296)
      2. com.newrelic.agent.android.tracing.TraceMachine.enterMethod(TraceMachine.java:281)
      3. com.newrelic.agent.android.instrumentation.BitmapFactoryInstrumentation.decodeStream(BitmapFactoryInstrumentation.java:90)
      3 frames
    3. com.facebook.imageutils
      BitmapUtil.decodeDimensions
      1. com.facebook.imageutils.BitmapUtil.decodeDimensions(BitmapUtil.java:101)
      1 frame
    4. com.facebook.imagepipeline
      LocalFetchProducer$1.getResult
      1. com.facebook.imagepipeline.image.EncodedImage.parseMetaData(EncodedImage.java:286)
      2. com.facebook.imagepipeline.producers.LocalFetchProducer$1.getResult(LocalFetchProducer.java:70)
      3. com.facebook.imagepipeline.producers.LocalFetchProducer$1.getResult(LocalFetchProducer.java:62)
      3 frames
    5. com.facebook.common
      StatefulRunnable.run
      1. com.facebook.common.executors.StatefulRunnable.run(StatefulRunnable.java:45)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames