Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NPE if ITextViewer is nullified during call to .underline()
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.
- Loading branch information