[Chapel Merge] LSP: another hot fix for runtime crashes

Branch: refs/heads/main
Revision: 0c118fa39060c90a2ad54d115cc6ff9a94302ae4
Author: DanilaFe
Link: LSP: another hot fix for runtime crashes by DanilaFe · Pull Request #24879 · chapel-lang/chapel · GitHub
Log Message:
LSP: another hot fix for runtime crashes (#24879)

Depends on dyno: fix casting param values to non-param values by DanilaFe · Pull Request #24878 · chapel-lang/chapel · GitHub.

This PR fixes a segmentation fault that occurs when we try to resolve
the type of an expression in a particular instantiated function.
Resolving concrete functions can fail (e.g., due to recursion), and
return null. We didn't handle that. This PR fixes that.

Reviewed by @jabraham17 -- thanks!

Compare: Comparing a9e69bd8bceff613d0f1c56e22b92a4d1668b107...b8a057f1072a8028b29239f50c2476fe734d6a30 · chapel-lang/chapel · GitHub

Diff:
M tools/chapel-py/src/method-tables/uast-methods.h
https://github.com/chapel-lang/chapel/pull/24879.diff