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

fix NPE for ReferenceAnalyzer.fIndexedDetectors null #1289 #1290

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Jun 5, 2024

Copy link

github-actions bot commented Jun 5, 2024

Test Results

  206 files   -    85    206 suites   - 85   37m 53s ⏱️ - 27m 30s
3 578 tests ±    0  3 502 ✅ ±    0   76 💤 ± 0  0 ❌ ±0 
7 402 runs   - 3 629  7 248 ✅  - 3 552  154 💤  - 77  0 ❌ ±0 

Results for commit c762ba4. ± Comparison against base commit 2194441.

♻️ This comment has been updated with latest results.

@jukzi jukzi force-pushed the NPEapi branch 2 times, most recently from 6d6875f to 27c4799 Compare June 5, 2024 14:58
try {
// build problem detectors
IApiProblemDetector[] detectors = buildProblemDetectors(component, ProblemDetectorBuilder.K_ALL,
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you moved this into the try-catch-block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure: the final block cleans up a field that is initialized somewhen within "buildProblemDetectors". Any exception after initializing the field would leave a leak.

@jukzi jukzi merged commit 8e177ee into eclipse-pde:master Jun 6, 2024
16 of 17 checks passed
@jukzi jukzi deleted the NPEapi branch June 6, 2024 11:34
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.

4 participants