Project

Profile

Help

Revision 9acaa097

Added by Michael Kay over 9 years ago

Fix bug 1517 - cast expression in AVT throws NPE

View differences:

latest9.3/hej/net/sf/saxon/style/AttributeValueTemplate.java
66 66
                }
67 67
                Expression exp;
68 68
                ExpressionParser parser = env.getConfiguration().newExpressionParser("XP", false, env.getXPathLanguageLevel());
69
                parser.setDefaultContainer(((ExpressionContext)env).getStyleElement());
69 70
                parser.setLanguage(ExpressionParser.XPATH, env.getXPathLanguageLevel());
70 71
                exp = parser.parse(avt, i0 + 1, Token.RCURLY, lineNumber, env);
71 72
                exp = visitor.simplify(exp);

Also available in: Unified diff