Skip to content

Commit 8bfcf00

Browse files
author
Vitaliy Boyko
committed
Fixed null pointer
1 parent aab3964 commit 8bfcf00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public void visitFile(final PsiFile file) {
7171

7272
final XmlAttribute pluginNameAttribute =
7373
pluginXmlTag.getAttribute(ModuleDiXml.NAME_ATTR);
74+
if (pluginNameAttribute == null) {
75+
continue;
76+
}
7477

7578
final String pluginNameAttributeValue = pluginNameAttribute.getValue();
7679
if (pluginNameAttributeValue == null) {

0 commit comments

Comments
 (0)