EA-102221

This commit is contained in:
Alexander Zolotov
2017-06-09 15:30:22 +03:00
parent dee2bf40c6
commit e6447a91d6
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ public class IconsGeneratedSourcesFilter extends GeneratedSourcesFilter {
PsiFile psiFile = PsiManager.getInstance(project).findFile(file);
if (psiFile instanceof PsiJavaFile) {
for (PsiClass aClass : ((PsiJavaFile)psiFile).getClasses()) {
if (aClass.hasModifierProperty(PsiModifier.PUBLIC)) {
if (aClass.isValid() && aClass.hasModifierProperty(PsiModifier.PUBLIC)) {
PsiDocComment comment = aClass.getDocComment();
return comment != null && comment.getText().contains("run build/scripts/icons.gant instead");
}