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: GetCurrentPage for PrismWindow.Page throwing exception #3147

Merged
merged 7 commits into from
May 30, 2024

Conversation

RLittlesII
Copy link
Contributor

@RLittlesII RLittlesII commented May 22, 2024

Description of Change

Fixed a bug that causes the sample application to crash given a PrismWindow is somewhere on the navigation stack.

Bugs Fixed

API Changes

Changed:

  • checking PrismWindow for the Page property on it and passing it to the GetTarget method

Behavioral Changes

Ensured the PrismWindow gets properly handled and passed the Page property on to find the target if available.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard

@RLittlesII RLittlesII marked this pull request as ready for review May 22, 2024 22:07
@RLittlesII RLittlesII force-pushed the gh/3143 branch 2 times, most recently from f410682 to 251fff4 Compare May 23, 2024 01:18
@RLittlesII RLittlesII changed the title fix: PrismWindow target page fix: GetCurrentPage for PrismWindow.Page throwing exception May 23, 2024
clean up test naming
ensuring bug is attached to each test
clean up expected vs actual
/// This test was introduced to verify GH3143
/// </summary>
/// <a href="https://github.com/PrismLibrary/Prism/issues/3143">Git Hub Issue 3143</a>
[Fact(Skip = "System.InvalidOperationException\nBindableObject was not instantiated on a thread with a dispatcher nor does the current application have a dispatcher.")]
Copy link
Member

Choose a reason for hiding this comment

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

@dansiegel dansiegel merged commit 2d9cf89 into PrismLibrary:master May 30, 2024
2 checks passed
@RLittlesII RLittlesII deleted the gh/3143 branch June 4, 2024 01:49
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.

[BUG] Putting an app in background when a modal is being displayed crashes the App
2 participants