Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add potentially missing null checks #1610

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

jonahgraham
Copy link
Contributor

This fixes a potential regression introduced in
34b8e38 When that commit was done some instanceof checks were removed.
The result of removing the instanceof checks had the side effect of removing the implicit null check that instanceof essentially does.

I reviewed all the removed instanceof checks in 34b8e38 and this PR, along with #1609 restores the null check.

I don't know how to trigger these potential NPEs.

This fixes a potential regression introduced in
34b8e38 When that commit was
done some instanceof checks were removed.
The result of removing the instanceof checks had the side effect
of removing the implicit null check that instanceof essentially
does.

This change restores the null checks for all the instanceofs that
were removed in 34b8e38
Copy link

Test Results

   285 files  ±0     285 suites  ±0   50m 46s ⏱️ - 1m 21s
 3 608 tests ±0   3 532 ✅ ±0   76 💤 ±0  0 ❌ ±0 
11 016 runs  ±0  10 785 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit 61884b8. ± Comparison against base commit e8a1e17.

@iloveeclipse iloveeclipse merged commit 975f72b into eclipse-pde:master Feb 11, 2025
18 checks passed
@jonahgraham jonahgraham deleted the null-checks branch February 11, 2025 20:32
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.

2 participants