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

NPE in rule filter #153

Closed
Bananeweizen opened this issue May 3, 2019 · 0 comments
Closed

NPE in rule filter #153

Bananeweizen opened this issue May 3, 2019 · 0 comments
Assignees

Comments

@Bananeweizen
Copy link
Collaborator

Bananeweizen commented May 3, 2019

Open the "Checkstyle Configuration" dialog to configure a rule set. Type into the rule filter text field. An NPE happens on some rule that has a null description.

java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
	at java.util.regex.Matcher.reset(Matcher.java:309)
	at java.util.regex.Matcher.<init>(Matcher.java:229)
	at java.util.regex.Pattern.matcher(Pattern.java:1093)
	at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog$TreeFilter.selectRule(CheckConfigurationConfigureDialog.java:1099)```
@Bananeweizen Bananeweizen self-assigned this May 3, 2019
Bananeweizen added a commit to Bananeweizen/eclipse-cs that referenced this issue May 3, 2019
Avoid an NPE when matching on the rule description. For completeness,
apply the same null check on the name fields also, although those should
never return null.
Bananeweizen added a commit to Bananeweizen/eclipse-cs that referenced this issue May 4, 2019
Avoid an NPE when matching on the rule description. For completeness,
apply the same null check on the name fields also, although those should
never return null.
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

No branches or pull requests

1 participant