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

Windows.Forms.MonthCalendar control throws NullReferenceException #2475

Closed
coderesx opened this issue Dec 5, 2019 · 3 comments · Fixed by #2975 or #3041
Closed

Windows.Forms.MonthCalendar control throws NullReferenceException #2475

coderesx opened this issue Dec 5, 2019 · 3 comments · Fixed by #2975 or #3041
Assignees
Labels
🪲 bug Product bug (most likely) 💥 regression-preview Regression from a preview release
Milestone

Comments

@coderesx
Copy link

coderesx commented Dec 5, 2019

Windows.Forms.MonthCalendar controls throws NullReferenceException when the user clicks to change the date

General

This is a new issue in .NET Core 3.1. It worked fine in .NET Core 3.0
Operating System is Windows 10 Pro.
This happens if the MinDate and MaxDate are set.

I attached a sample to reproduce the issue.

WindowsFormsCoreApp1.zip

I should have posted this to dotnet/winforms. Sorry about that.

@coderesx coderesx changed the title Windows.Forms.MonthCalendar controls throws NullReferenceException Windows.Forms.MonthCalendar control throws NullReferenceException Dec 5, 2019
@OliaG
Copy link
Member

OliaG commented Dec 5, 2019

Thanks for reporting, we'll take a look! Cc @merriemcgaw @DustinCampbell

@merriemcgaw merriemcgaw transferred this issue from dotnet/core Dec 6, 2019
@RussKie
Copy link
Member

RussKie commented Dec 6, 2019

@M-Lipin @vladimir-krestov could you have a look, it may be related to some work done recently

@RussKie RussKie added 🪲 bug Product bug (most likely) 💥 regression-preview Regression from a preview release waiting-review This item is waiting on review by one or more members of team labels Dec 6, 2019
@RussKie RussKie added this to the 3.1.1 milestone Dec 6, 2019
@JuditRose JuditRose added the servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria label Dec 10, 2019
@ghost ghost added the 🚧 work in progress Work that is current in progress label Feb 26, 2020
@ghost ghost removed the 🚧 work in progress Work that is current in progress label Mar 10, 2020
@ghost ghost added the 🚧 work in progress Work that is current in progress label Mar 16, 2020
vladimir-krestov added a commit to vladimir-krestov/winforms that referenced this issue Mar 23, 2020
to get correct data from WinAPI messages
Fixes Issue dotnet#2912
Related Issue dotnet#2475
Related PR dotnet#2975
RussKie pushed a commit that referenced this issue Mar 24, 2020
To get correct data from WinAPI messages

Fixes #2912
Related Issue #2475
Related PR #2975
vladimir-krestov added a commit to vladimir-krestov/winforms that referenced this issue Apr 6, 2020
against incorrect parameters of methods to avoid exception throwing
Related Issues dotnet#2912 and dotnet#2475
Related PR dotnet#2911
RussKie pushed a commit that referenced this issue Apr 13, 2020
Add protection for MonthCalendarAccessibleObject against incorrect parameters of methods to avoid exception throwing

Related Issues #2912 and #2475
Related PR #2911
@RussKie RussKie modified the milestones: 3.1.x, 3.1.4 Apr 17, 2020
@RussKie RussKie closed this as completed Apr 17, 2020
@RussKie RussKie removed servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria waiting-review This item is waiting on review by one or more members of team labels Apr 17, 2020
@RussKie
Copy link
Member

RussKie commented Apr 17, 2020

Fixed in #3041

@RussKie RussKie linked a pull request Apr 17, 2020 that will close this issue
@ghost ghost added 🚧 work in progress Work that is current in progress and removed 🚧 work in progress Work that is current in progress labels May 10, 2020
vladimir-krestov added a commit to vladimir-krestov/winforms that referenced this issue May 12, 2020
against incorrect parameters of methods to avoid exception throwing
Related Issues dotnet#2912 and dotnet#2475
Related PR dotnet#2911
@ghost ghost removed the 🚧 work in progress Work that is current in progress label May 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Product bug (most likely) 💥 regression-preview Regression from a preview release
Projects
None yet
6 participants