Possible NPE in PayloadController.shutdown #317
hieuletrung
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In https://github.com/newrelic/newrelic-android-agent/blob/main/agent-core/src/main/java/com/newrelic/agent/android/payload/PayloadController.java#L112, there's possibility of NPE araise. Since the queueExecutor init here https://github.com/newrelic/newrelic-android-agent/blob/main/agent-core/src/main/java/com/newrelic/agent/android/payload/PayloadController.java#L76, but it doesn't gurantee to be atomic.
After we have the getAndSet new instance here https://github.com/newrelic/newrelic-android-agent/blob/main/agent-core/src/main/java/com/newrelic/agent/android/payload/PayloadController.java#L72, the isInitialized() will return true since the instance is available after that call
Here is stack trace of the NPE.
Beta Was this translation helpful? Give feedback.
All reactions