Excel-DNA / Excel-DNA/ExcelDna
NullReferenceException in XlMethodInfo.ConvertToXlMethodInfos
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 292
- Avg merge
- 20d 12h
- Merged PRs (30d)
- 1
Description
I'm getting a NullReferenceException on this line:
https://github.com/Excel-DNA/ExcelDna/blob/c1774862f489dd97ca0b2e85a9e5792a5df90702/Source/ExcelDna.Loader/XlMethodInfo.cs#L273
Up above mi is declared like `MethodInfo mi = methods?[i]; // List might be null` but the line I'm linking to seems to be assuming that `mi` is never null. I'm using ExcelDna.Registration and using lambda expressions to handle parameter conversions and this error seems to happen when I have a function where none of my lambda expressions can handle the given parameter type.
There's another `Logger.Registration` call a few lines before this that also should probably handle a null `mi`.
Contributor guide
Assessment
This issue has not been assessed yet.