ParameterInfo.Name needs to be checked for null before usage by filmor · Pull Request #1375 · pythonnet/pythonnet
Repository navigation
ParameterInfo.Name needs to be checked for null before usage - #1375
Merged
lostmsu merged 2 commits into master from parameter-name-may-be-null Feb 4, 2021
Merged
ParameterInfo.Name needs to be checked for null before usage #1375 lostmsu merged 2 commits into master from parameter-name-may-be-null
Conversation
filmor commented Feb 4, 2021 · edited Loading
Copy link Copy Markdown
Member
What does this implement/fix? Explain your changes.
This occured in trying to use F# code from Python. As the .Name property returns null, ContainsKey fails.
Does this close any currently open issues?
I don't think so.
Any other comments?
Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
I don't know if there is a way to create a C# method without a parameter name. I'll try to set up a few simple F# test-cases in the future in a separate PR (follow-up ticket: #1374 ).
Checklist
Check all those that are applicable and complete.
- Make sure to include one or more tests for your change
- If an enhancement PR, please create docs and at best an example
- Add yourself to
AUTHORS - Updated the
CHANGELOG
ParameterInfo.Name needs to be checked for null before usage
cc19444
This occured in trying to use F# code from Python. As the `.Name` property returns `null`, `ContainsKey` fails. Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
Update CHANGELOG.md
cd39c35
filmor
requested a review
from lostmsu
February 4, 2021 08:27
lostmsu commented Feb 4, 2021
Copy link Copy Markdown
Member
|
Can you add a test? |
lostmsu commented Feb 4, 2021
Copy link Copy Markdown
Member
|
I see #1374 |
d86bf3c
into
master
Feb 4, 2021
lostmsu
deleted the
parameter-name-may-be-null
branch
February 4, 2021 20:33
filmor
added a commit
that referenced
this pull request
Feb 4, 2021
ParameterInfo.Name needs to be checked for null before usage (#1375)
4cb551e
This occured in trying to use F# code from Python. As the `.Name` property returns `null`, `ContainsKey` fails. Related documentation: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.parameterinfo.name
noambonnieclear commented Feb 11, 2021 · edited Loading
Copy link Copy Markdown
|
I tried testing this with the latest 2.5.2 release. Could it be that there was something wrong with the distribution of the package? We checked on multiple environments and it looks like when we install 2.5.2 we still get 2.5.1. Really odd but we're running out of ideas of what we might be doing wrong for a straight forward upgrade... :-) Also tried fresh installs... For example:
|
filmor commented Feb 11, 2021
Copy link Copy Markdown
Member
Author
|
It's possible that I missed one version string somewhere, sorry about that. The process on the backports branch is completely manual. |
noambonnieclear commented Feb 11, 2021
Copy link Copy Markdown
|
Thank you @filmor - what's the path forward? is it going to be re-released as 2.5.2 or changed to 2.5.3? i.e. - will I get notified of a new release when this is corrected? |
noambonnieclear commented Feb 11, 2021
Copy link Copy Markdown
|
@filmor I apologize but I actually commented on the wrong issue. It was supposed to be on #1364 - But regardless looks like something in the distribution is wrong based on the above comment. |
filmor commented Feb 11, 2021
Copy link Copy Markdown
Member
Author
|
I don't intend to do a 2.5.3 release just for this. 2.5 is frozen, only patches for regressions are backported. Work is happening on |
Bot
mentioned this pull request Oct 16, 2026 Bump the nuget group with 6 updates dfx-org/dfx#183 Closed dependabot
Bot
mentioned this pull request Oct 27, 2026 Bump the nuget group with 6 updates dfx-org/dfx#185 Merged Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment