Skip to content

Don't try to create a XamlProject for a null hierarchy.#26129

Merged
DustinCampbell merged 1 commit intodotnet:masterfrom
mgoertz-msft:dev15.7.x
Apr 20, 2018
Merged

Don't try to create a XamlProject for a null hierarchy.#26129
DustinCampbell merged 1 commit intodotnet:masterfrom
mgoertz-msft:dev15.7.x

Conversation

@mgoertz-msft
Copy link
Copy Markdown
Contributor

Finally got around to submitting this. It has been reported via email for diffing scenarios in VS with XAML files under source code control. I can see how this could null ref but I have not been able to repro it. Fix is trivial - bail out if the IVsHierarchy for the text view is null so we don't attempt to create a XamlProject for a null hierarchy - which is why I have submitted it for dev15.7.x. But if that's too late I would be fine with moving it to 15.8 too.

Ask Mode template not completed

Customer scenario

What does the customer do to get into this situation, and why do we think this
is common enough to address for this release. (Granted, sometimes this will be
obvious "Open project, VS crashes" but in general, I need to understand how
common a scenario is)

Bugs this fixes

(either VSO or GitHub links)

Workarounds, if any

Also, why we think they are insufficient for RC vs. RC2, RC3, or RTW

Risk

This is generally a measure our how central the affected code is to adjacent
scenarios and thus how likely your fix is to destabilize a broader area of code

Performance impact

(with a brief justification for that assessment (e.g. "Low perf impact because no extra allocations/no complexity changes" vs. "Low")

Is this a regression from a previous update?

Root cause analysis

How did we miss it? What tests are we adding to guard against it in the future?

How was the bug found?

(E.g. customer reported it vs. ad hoc testing)

Test documentation updated?

If this is a new non-compiler feature or a significant improvement to an existing feature, update https://github.com/dotnet/roslyn/wiki/Manual-Testing once you know which release it is targeting.

@mgoertz-msft mgoertz-msft requested a review from a team as a code owner April 12, 2018 23:48
@jasonmalinowski
Copy link
Copy Markdown
Member

@mgoertz-msft: this branch is now in escrow and will require divisional approval for changes. If that's a bar you're willing to go through, we can merge it. Otherwise retarget to master.

@mgoertz-msft mgoertz-msft changed the base branch from dev15.7.x to master April 13, 2018 00:05
@mgoertz-msft
Copy link
Copy Markdown
Contributor Author

@jasonmalinowski Master it is then. AFAIK, the symptom is just a null ref dialog popping up.

@DustinCampbell DustinCampbell merged commit f76e5ed into dotnet:master Apr 20, 2018
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.

4 participants