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

Add null check for top pane title #5526

Conversation

MartinZikmund
Copy link
Contributor

Description

Adds a null check to ensure NavigationView does not crash when trying to access PaneTitleOnTopPane when it is not part of the template.

Motivation and Context

Fixes #5525

How Has This Been Tested?

Locally and in Uno Platform port.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jul 21, 2021
Copy link
Collaborator

@marcelwgn marcelwgn left a comment

Choose a reason for hiding this comment

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

LGTM, don't think a test for this would add much value.

@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranjeshj ranjeshj added area-NavigationView NavView control team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jul 22, 2021
@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RBrid
Copy link
Contributor

RBrid commented Jul 28, 2021

@MartinZikmund, could you please merge with the latest main and start a new pipeline with /azp run ?

@StephenLPeters
Copy link
Contributor

You will not be able to start the pipelines but if you could merge main that would be great!

@MartinZikmund MartinZikmund force-pushed the user/martinzikmund/navigationview-title-crash branch from 4d37255 to fa3ec9b Compare July 28, 2021 05:52
@MartinZikmund
Copy link
Contributor Author

@RBrid @StephenLPeters done 👍

@RBrid
Copy link
Contributor

RBrid commented Jul 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@beervoley beervoley merged commit 7c6ff35 into microsoft:main Jul 28, 2021
@beervoley
Copy link
Contributor

beervoley commented Jul 28, 2021

@StephenLPeters FYI merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Winui2 should have tests which ensure that code behind does not require template parts.
6 participants