mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[xpath] a null-check added before XsltVariableContext.isReferenceTo check (EA-143967)
GitOrigin-RevId: d2d4a3556f6c64c413e06257e900cc26ab43e333
This commit is contained in:
committed by
intellij-monorepo-bot
parent
82ac8719d1
commit
abf0e32a0c
+1
@@ -117,6 +117,7 @@ public class XsltVariableContext implements VariableContext<XsltVariable> {
|
||||
if (template == null || template.getMatchExpression() == null) return false;
|
||||
|
||||
final XPathVariable t = reference.resolve();
|
||||
if (t == null) return false;
|
||||
final PsiReference[] references = element.getReferences();
|
||||
for (PsiReference r : references) {
|
||||
if (r.isReferenceTo(t)) return true;
|
||||
|
||||
Reference in New Issue
Block a user