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

Cannot open any css file with the generic editor #752 #753

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

vrubezhny
Copy link
Contributor

Fixes: #752

uri = new URI(docIdentifier.getUri());
} catch (URISyntaxException e) {
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Catching Exception is really bad style. As this PR is about fixing NPE couldn't you keep the original exception and do an extra null check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a null-check for document URI and restored catching original URISyntaxException

@akurtakov akurtakov merged commit 043b267 into eclipse:master Aug 10, 2023
2 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.

Cannot open any css file with the generic editor
3 participants