Skip to content

PM UI: fix null reference exception in WPF databinding - #3630

Merged
dtivel merged 1 commit into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-fixnullreference
Sep 2, 2020
Merged

dtivel merged 1 commit into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-fixnullreference

Conversation

@dtivel

@dtivel dtivel commented Sep 2, 2020

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#9978
Regression: Yes

Fix

Details: Guard against null in WPF databinding.

Testing/Validation

Tests Added: Yes

@dtivel dtivel changed the title Fix null reference exception. PM UI: fix null reference exception in WPF databinding Sep 2, 2020

@rrelyea rrelyea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good catch with adhoc testing...with first chance exceptions on!

get
{
return SelectedVersion != null
&& InstalledVersion != null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

installedversion null check is extraneous...but ok to do.

@dtivel
dtivel merged commit 4663c87 into dev-feature-OE.PMUI Sep 2, 2020
@dtivel
dtivel deleted the dev-dtivel-oe-pmui-fixnullreference branch September 2, 2020 19:46
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.

2 participants