File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/com/magento/idea/magento2plugin/inspections/xml Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ public void visitXmlTag(final @NotNull XmlTag xmlTag) {
55
55
56
56
if (nameAttribute == null
57
57
|| nameAttribute .getValue () == null
58
- || nameAttribute .getValueElement () == null ) {
58
+ || nameAttribute .getValueElement () == null
59
+ || nameAttribute .getValueElement ().getText ().isEmpty ()) {
59
60
return ;
60
61
}
61
62
@@ -100,8 +101,9 @@ private void checkObjectArgumentsRecursively(final @NotNull XmlTag tag) {
100
101
final XmlAttribute xsiTypeAttr = tag .getAttribute (ModuleDiXml .XSI_TYPE_ATTR );
101
102
102
103
if (xsiTypeAttr == null
104
+ || xsiTypeAttr .getValue () == null
103
105
|| xsiTypeAttr .getValueElement () == null
104
- || xsiTypeAttr .getValue () == null ) {
106
+ || xsiTypeAttr .getValueElement (). getText (). isEmpty () ) {
105
107
return ;
106
108
}
107
109
final String xsiTypeValue = xsiTypeAttr .getValue ();
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ public void visitXmlTag(final XmlTag xmlTag) {
50
50
51
51
if (preferenceForAttribute == null
52
52
|| preferenceForAttribute .getValue () == null
53
- || preferenceForAttribute .getValueElement () == null ) {
53
+ || preferenceForAttribute .getValueElement () == null
54
+ || preferenceForAttribute .getValueElement ().getText ().isEmpty ()) {
54
55
return ;
55
56
}
56
57
@@ -66,7 +67,8 @@ public void visitXmlTag(final XmlTag xmlTag) {
66
67
67
68
if (preferenceTypeAttribute == null
68
69
|| preferenceTypeAttribute .getValue () == null
69
- || preferenceTypeAttribute .getValueElement () == null ) {
70
+ || preferenceTypeAttribute .getValueElement () == null
71
+ || preferenceTypeAttribute .getValueElement ().getText ().isEmpty ()) {
70
72
return ;
71
73
}
72
74
You can’t perform that action at this time.
0 commit comments