diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/predicates/ScriptSupport.java b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/predicates/ScriptSupport.java index e4136ede2831..c89dd961a3a8 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/predicates/ScriptSupport.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/predicates/ScriptSupport.java @@ -62,6 +62,8 @@ public class ScriptSupport { return String.valueOf(o); } catch (GroovyRuntimeException ex) { throw new StructuralSearchException(SSRBundle.message("groovy.script.error", ex.getMessage())); + } finally { + script.setBinding(null); } }