-
Notifications
You must be signed in to change notification settings - Fork 1k
Add misc Design tests and fix a NullRef bug #807
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
Conversation
@@ -21,7 +21,7 @@ public class WindowsFormsDesignerOptionService : DesignerOptionService | |||
/// </summary> | |||
protected override void PopulateOptionCollection(DesignerOptionCollection options) | |||
{ | |||
if (options.Parent == null) | |||
if (options?.Parent == null) | |||
{ | |||
DesignerOptions designerOptions = CompatibilityOptions; | |||
if (designerOptions != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If options is null, then this evaluation is now true. What happens then options reaches CreateOptionCollection(options, "DesignerOptions", designerOptions);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK... looks like I accidentally subclassed the wrong thing so weren't great here.
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
==================================================
+ Coverage 27.4977% 27.59476% +0.09706%
==================================================
Files 1055 1061 +6
Lines 291188 291414 +226
Branches 38518 38521 +3
==================================================
+ Hits 80070 80415 +345
+ Misses 207060 206939 -121
- Partials 4058 4060 +2
|
Fixes #806