Handle null doc lines

This commit is contained in:
James Allen 2014-05-29 11:18:31 +01:00
parent 973d9b8643
commit 9f969bba4d

View file

@ -72,4 +72,4 @@ module.exports = HttpController =
}
_buildRawDocView: (doc)->
return doc.lines.join("\n")
return (doc?.lines or []).join("\n")