currentProject = e.getProject(); if (currentProject != null) { Location location = e.getLocation(); File file = location != null ? location.getFile() : currentProject.getDir(); Context context = new Context(this, currentProject, null, file); context.report(IssueRegistry.LINT_ERROR, e.getLocation(), e.getMessage()); currentProject = null;