Skip to content
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

[AppConfig] Avoid throwing NullReferenceException #31588

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

avanigupta
Copy link
Member

If the value of a SecretReferenceConfigurationSetting is null, accessing this value throws NullReferenceException. Seems like an oversight in this line of code.

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

…eConfigurationSetting.Value is null

If the value of a `SecretReferenceConfigurationSetting` is null, accessing this value throws `NullReferenceException`.
Seems like an oversight in this line of code.
@ghost ghost added the App Configuration Azure.ApplicationModel.Configuration label Oct 4, 2022
@check-enforcer
Copy link

check-enforcer bot commented Oct 4, 2022

This pull request is protected by Check Enforcer.
For more information about how to run a pipeline against this pull request, see this.

Copy link
Member

@ShivangiReja ShivangiReja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me!

Thank you so much @avanigupta for your contribution!

@ShivangiReja
Copy link
Member

/check-enforcer override

@ShivangiReja ShivangiReja merged commit 3e150ad into Azure:main Oct 4, 2022
@avanigupta avanigupta deleted the patch-1 branch October 5, 2022 05:03
@avanigupta
Copy link
Member Author

@ShivangiReja any idea when the new package will be released with this bug fix?

@ShivangiReja
Copy link
Member

@avanigupta We have a SDK release cycle every month and we release SDKs second week(usually 2nd Tuesday) of every month. I'm planning to release a preview version today/tomorrow.

@avanigupta
Copy link
Member Author

@ShivangiReja awesome, thanks!
Also, how long does the package stay in preview? Trying to estimate when we'll be able to use the stable version.

@ShivangiReja
Copy link
Member

Hi @avanigupta, we have released [email protected] preview version which includes this bug fix.

@ShivangiReja
Copy link
Member

Also, how long does the package stay in preview? Trying to estimate when we'll be able to use the stable version.

@avanigupta We don't have a committed date for GA release and most likely it won't take place until after the new year. The work-around of having a catch block seems simple enough in the meantime.

@recao
Copy link

recao commented Jan 9, 2023

Hi @ShivangiReja , do we have any plans for a new GA release recently?

@ShivangiReja
Copy link
Member

@recao We still don't have a committed date for GA release yet. I'll update this thread when we have a date for a GA release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants