Eclipse Luna 4.4.2中的空指针异常使用Checkstyle 6.5.0.201504121610

时间:2015-07-06 14:38:15

标签: java eclipse checkstyle

我安装了Eclipse Luna 4.4.2的checkstyle插件版本6.5.0.201504121610。当我右键单击Java源文件并选择Checkstyle,然后使用Checkstyle检查代码时,出现错误:

'Checking files...' has encountered a problem. An internal error occured during: "Checking files...".

当我点击<<Details时,会显示:

An internal error occurred during: "Checking files...".
java.lang.NullPointerException

例外是:

java.lang.NullPointerException
    at com.google.common.io.Flushables.flush(Flushables.java:56)
    at com.puppycrawl.tools.checkstyle.PropertyCacheFile.flushAndCloseOutStream(PropertyCacheFile.java:135)
    at com.puppycrawl.tools.checkstyle.PropertyCacheFile.destroy(PropertyCacheFile.java:123)
    at com.puppycrawl.tools.checkstyle.TreeWalker.destroy(TreeWalker.java:499)
    at com.puppycrawl.tools.checkstyle.Checker.process(Checker.java:299)
    at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:159)
    at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:300)
    at net.sf.eclipsecs.core.jobs.RunCheckstyleOnFilesJob.runInWorkspace(RunCheckstyleOnFilesJob.java:116)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我也在Eclipse Kepler上看过这个。还有其他人遇到过这个问题吗?

我使用的是所有项目通用的外部checkstyle配置文件。

0 个答案:

没有答案