Previously, it was possible for the viewer variable used in LSPDocumentLinkPresentationReconcilingStrategy.underline() to be nullified externally, which caused a null-pointer exception for the call viewer.getTextWidget().
This commit solves this problem by saving the relevant viewer as a variable local to the
LSPDocumentLinkPresentationReconcilingStrategy.underline() function.
Previously, it was possible for the
viewer
variable used inLSPDocumentLinkPresentationReconcilingStrategy.underline()
to be nullified externally, which caused a null-pointer exception for the callviewer.getTextWidget()
.This commit solves this problem by saving the relevant viewer as a variable local to the
LSPDocumentLinkPresentationReconcilingStrategy.underline()
function.