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: prevent npe and user-facing error when eclipse is loaded with no projects open [IDE-845] #250

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

andrewrobinsonhodges-snyk
Copy link
Contributor

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk commented Jan 7, 2025

Simple fix to prevent user-facing error when eclipse is started with no projects open. Note that we still don't refresh plugins when a project is opened - I'll raise a separate ticket for that.

Description

Previously, if eclipse was opened without a project, the plugin would crash and the user would see a garbled view with no obvious way to recover. Now, the Snyk plugin loads correctly.

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Before:
image

After:
image

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk requested a review from a team as a code owner January 7, 2025 11:02
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk changed the title fix: prevent npe and user-facing error when eclipse is loaded with no projects open fix: prevent npe and user-facing error when eclipse is loaded with no projects open [IDE-845] Jan 7, 2025
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk merged commit 7d48ade into main Jan 7, 2025
7 checks passed
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk deleted the fix/npe-with-no-project branch January 7, 2025 12:47
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