Skip to content

Commit

Permalink
fixes #17486, DTL crash on null variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dylans committed Sep 11, 2015
1 parent 7a9a379 commit fbd5c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtl/_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ define([
},
{
render: function(context, buffer){
var str = this.contents.resolve(context);
var str = this.contents.resolve(context) || "";
if(!str.safe){
str = dd._base.escape("" + str);
}
Expand Down

0 comments on commit fbd5c21

Please sign in to comment.