From 5860231401135cff9cafd1965b8f9da28fff2eb2 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 4 Oct 2012 14:07:25 +0400 Subject: [PATCH] no StrutsProjectComponent for default project --- .../openapi/compiler/util/InspectionValidatorWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/compiler/impl/src/com/intellij/openapi/compiler/util/InspectionValidatorWrapper.java b/java/compiler/impl/src/com/intellij/openapi/compiler/util/InspectionValidatorWrapper.java index 3c9024c6efeb..1b84ca368133 100644 --- a/java/compiler/impl/src/com/intellij/openapi/compiler/util/InspectionValidatorWrapper.java +++ b/java/compiler/impl/src/com/intellij/openapi/compiler/util/InspectionValidatorWrapper.java @@ -115,7 +115,7 @@ public class InspectionValidatorWrapper implements Validator { @NotNull public ProcessingItem[] getProcessingItems(final CompileContext context) { final Project project = context.getProject(); - if (!ValidationConfiguration.shouldValidate(this, context)) { + if (project.isDefault() || !ValidationConfiguration.shouldValidate(this, context)) { return ProcessingItem.EMPTY_ARRAY; } final ExcludedEntriesConfiguration excludedEntriesConfiguration = ValidationConfiguration.getExcludedEntriesConfiguration(project);