Skip to content

NullPointerException in Eclipse when using both the Spring Java Format plugin and the Checkstyle plugin #179

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

Closed
wants to merge 1 commit into from

Conversation

lorenzodee
Copy link
Contributor

This resolves #178 . The library was declared in the build.properties. But the missing backslash caused it to be ignored.

@wilkinsona wilkinsona changed the title Resolving #178 (Missing Lib in Eclipse Checkstyle Plugin) NullPointerException in Eclipse when using both the Spring Java Format plugin and the Checkstyle plugin Apr 1, 2020
@wilkinsona wilkinsona added this to the 0.0.21 milestone Apr 1, 2020
@wilkinsona
Copy link
Contributor

We've seen a couple of NullPointerExceptions that we hope this will fix:

java.lang.NullPointerException
	at net.sf.eclipsecs.core.config.configtypes.ConfigurationType.getCheckstyleConfiguration(ConfigurationType.java:123)
	at net.sf.eclipsecs.core.config.CheckConfiguration.getCheckstyleConfiguration(CheckConfiguration.java:161)
	at net.sf.eclipsecs.core.builder.CheckerFactory.getCacheKey(CheckerFactory.java:171)
	at net.sf.eclipsecs.core.builder.CheckerFactory.createChecker(CheckerFactory.java:104)
	at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:140)
	at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:307)
	at net.sf.eclipsecs.core.builder.CheckstyleBuilder.build(CheckstyleBuilder.java:173)
java.lang.NullPointerException
	at net.sf.eclipsecs.core.config.configtypes.ConfigurationType.getCheckstyleConfiguration(ConfigurationType.java:123)
	at net.sf.eclipsecs.core.config.CheckConfigurationWorkingCopy.getCheckstyleConfiguration(CheckConfigurationWorkingCopy.java:329)
	at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.configureCheckConfig(CheckConfigurationWorkingSetEditor.java:513)
	at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.access$6(CheckConfigurationWorkingSetEditor.java:505)
	at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor$PageController.widgetSelected(CheckConfigurationWorkingSetEditor.java:400)

wilkinsona pushed a commit that referenced this pull request Apr 6, 2020
@wilkinsona wilkinsona closed this in e8039de Apr 6, 2020
@wilkinsona
Copy link
Contributor

Thank you very much for making your first contribution to Spring Java Format, @lorenzodee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Lib in Eclipse Checkstyle Plugin
2 participants