I would like to propose backporting the fix for https://github.com/clangd/clangd/issues/1743 to the 17.x branch. This fix is low risk (it's just adding a null pointer check), and it fixes a clangd crash.