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

fix: Avoiding exceptions loading files on android, ios and winui #754

Merged
merged 4 commits into from
Sep 28, 2022

Conversation

nickrandolph
Copy link
Contributor

@nickrandolph nickrandolph commented Sep 22, 2022

GitHub Issue (If applicable): #753

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Attempting to open a package file using IStorageFile.ReadPackageFileAsync raises an internal exception if the file doesn't exist - particularly bad on startup when application looks for files that need to contribute to configuration

What is the new behavior?

File exists check is made for each platform before attempting to open the file

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@nickrandolph nickrandolph changed the title fix: Avoiding exceptions loading files on android fix: Avoiding exceptions loading files on android, ios and winui Sep 23, 2022
@nickrandolph nickrandolph marked this pull request as ready for review September 23, 2022 05:12
@nickrandolph nickrandolph merged commit c288cb0 into main Sep 28, 2022
@nickrandolph nickrandolph deleted the dev/nr/filenotfound branch September 28, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants