Skip to content

Enable nullability in DrawToolTipEventArgs and DrawTreeNodeEventArgs - #4683

Merged
RussKie merged 1 commit into
dotnet:mainfrom
gpetrou:DrawEventArgs
Mar 24, 2021
Merged

RussKie merged 1 commit into
dotnet:mainfrom
gpetrou:DrawEventArgs

Conversation

@gpetrou

@gpetrou gpetrou commented Mar 14, 2021 •

Copy link
Copy Markdown
Contributor

Proposed changes

  • Enable nullability in DrawToolTipEventArgs and DrawTreeNodeEventArgs.
Microsoft Reviewers: Open in CodeFlow

@gpetrou
gpetrou requested a review from a team as a code owner March 14, 2021 06:51
@ghost ghost assigned gpetrou Mar 14, 2021
@codecov

codecov Bot commented Mar 14, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #4683 (d4e049b) into main (03d1550) will decrease coverage by 0.00751%.
The diff coverage is 100.00000%.

❗ Current head d4e049b differs from pull request most recent head 8ec9dc8. Consider uploading reports for the commit 8ec9dc8 to get more accurate results

@@                 Coverage Diff                 @@
##                main       #4683         +/-   ##
===================================================
- Coverage   97.97893%   97.97142%   -0.00752%     
===================================================
  Files            547         547                 
  Lines         265652      265654          +2     
  Branches        5103        5103                 
===================================================
- Hits          260283      260265         -18     
- Misses          4486        4502         +16     
- Partials         883         887          +4     
Flag Coverage Δ
Debug 97.97142% <100.00000%> (-0.00752%) ⬇️
test 97.97142% <100.00000%> (-0.00752%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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.

I don't believe we have a scenario where Graphics object is null, or we ever pass null. So this looks like a validation oversight.
Let's fix it by adding checking and throwing a ANE, the same as DrawToolTipEventArgs

@ghost ghost added the waiting-author-feedback The team requires more information from the author label Mar 15, 2021
@RussKie RussKie added 📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren area: NRT labels Mar 15, 2021
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Mar 22, 2021
@RussKie

RussKie commented Mar 24, 2021

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@RussKie
RussKie merged commit 94ad04d into dotnet:main Mar 24, 2021
@ghost ghost added this to the 6.0 Preview3 milestone Mar 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants