Skip to content

Commit 4dd5838

Browse files
685: Fixed empty PSI elements must not be passed to createDescriptor for ModuleDeclarationInModuleXmlInspection
1 parent a32bf89 commit 4dd5838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/inspections/xml/ModuleDeclarationInModuleXmlInspection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void visitXmlAttributeValue(final XmlAttributeValue value) {
6363
= GetEditableModuleNameByRootFileUtil.execute(etcDirectory);
6464
final String actualName = value.getValue();
6565

66-
if (actualName.equals(expectedName)) {
66+
if (actualName.equals(expectedName) || actualName.trim().isEmpty()) {
6767
return;
6868
}
6969
final InspectionBundle inspectionBundle = new InspectionBundle();

0 commit comments

Comments
 (0)