Skip to content

Fix sporadic NPE if code-mining provider has been disposed #4392 - #4393

Merged
BeckerWdf merged 1 commit into
eclipse-platform:masterfrom
ptziegler:issue4392
Sep 21, 2026
Merged

BeckerWdf merged 1 commit into
eclipse-platform:masterfrom
ptziegler:issue4392

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

The code mining provider might be notified after it has already been disposed and as such might access a preference store or a document which no longer exists.

This change adds additional null-checks to make sure that in such a situation, an empty list of code-minings is returned.

Closes #4392

…atform#4392

The code mining provider might be notified _after_ it has already been
disposed and as such might access a preference store or a document which
no longer exists.

This change adds additional null-checks to make sure that in such a
situation, an empty list of code-minings is returned.

Closes eclipse-platform#4392
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   861 files  ±0     861 suites  ±0   49m 51s ⏱️ -32s
 8 336 tests ±0   8 093 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 877 runs  ±0  20 207 ✅ ±0  670 💤 ±0  0 ❌ ±0 

Results for commit de9418a. ± Comparison against base commit a6b4946.

@marcushoepfner marcushoepfner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@BeckerWdf BeckerWdf added this to the 4.42 M1 milestone Sep 21, 2026
@BeckerWdf
BeckerWdf merged commit 79b4760 into eclipse-platform:master Sep 21, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sporadic NPE in ZeroWidthCharactersLineContentCodeMiningProvider

3 participants