Skip to content

Commit

Permalink
Merge pull request #735 from twigjs/fix-value-null
Browse files Browse the repository at this point in the history
Fix parsing expression when null
  • Loading branch information
RobLoach committed Apr 16, 2020
2 parents 48cb028 + dccde2e commit 726dbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twig.expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ module.exports = function (Twig) {
while (stack.length > 0) {
value = stack.pop();
// Push values into the array until the start of the array
if (value.type && value.type === Twig.expression.type.array.start) {
if (value && value.type && value.type === Twig.expression.type.array.start) {
arrayEnded = true;
break;
}
Expand Down

0 comments on commit 726dbc2

Please sign in to comment.