Skip to content

fix: early access to context and packageName #10321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

rigor789
Copy link
Member

@rigor789 rigor789 commented Jun 22, 2023

PR Checklist

What is the current behavior?

Accessing Android.application.context can lead to crashes if called too early:

TypeError: Cannot read properties of undefined (reading 'getApplicationContext')

What is the new behavior?

Accessing context early will be undefined but will not crash (if the caller handles it correctly) - this matches behavior prior to 8.5.4.

@nx-cloud
Copy link

nx-cloud bot commented Jun 22, 2023

Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

CI is running for commit 3b8396f.

📂 Click to track the progress, see the status, the terminal output, and the build insights.


Sent with 💌 from NxCloud.

@cla-bot cla-bot bot added the cla: yes label Jun 22, 2023
@rigor789 rigor789 marked this pull request as ready for review June 22, 2023 18:38
@rigor789 rigor789 changed the title fix: early access to context fix: early access to context and packageName Jun 22, 2023
@NathanWalker NathanWalker merged commit 0873894 into main Jun 22, 2023
@NathanWalker NathanWalker deleted the fix/application-refactor-fix branch June 22, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants