From 070ffcbca8e590a73193dc5b54181abd21570eda Mon Sep 17 00:00:00 2001 From: SilinMykola Date: Thu, 8 Sep 2022 14:12:07 +0300 Subject: [PATCH] 1151 fix bug incorrecnt operation exception --- .../reference/xml/PolyVariantReferenceBase.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/com/magento/idea/magento2plugin/reference/xml/PolyVariantReferenceBase.java b/src/com/magento/idea/magento2plugin/reference/xml/PolyVariantReferenceBase.java index bf76497ca..d8bae70e5 100644 --- a/src/com/magento/idea/magento2plugin/reference/xml/PolyVariantReferenceBase.java +++ b/src/com/magento/idea/magento2plugin/reference/xml/PolyVariantReferenceBase.java @@ -10,6 +10,7 @@ import com.intellij.psi.PsiElementResolveResult; import com.intellij.psi.PsiPolyVariantReferenceBase; import com.intellij.psi.ResolveResult; +import com.intellij.util.IncorrectOperationException; import java.util.Collection; import org.jetbrains.annotations.NotNull; @@ -48,4 +49,12 @@ public ResolveResult[] multiResolve(final boolean incompleteCode) { } return resolveResults; } + + @SuppressWarnings("PMD.AvoidUncheckedExceptionsInSignatures") + @Override + public PsiElement bindToElement( + final @NotNull PsiElement element + ) throws IncorrectOperationException { + return null; + } }