Add in some null checks

This commit is contained in:
James Allen 2014-03-13 14:30:01 +00:00
parent 9977a418c3
commit 540aaf0672

View file

@ -191,7 +191,7 @@ module.exports = DiffGenerator =
return part
_getLengthOfDiffPart: (part) ->
(part.u or part.d or part.i).length
(part.u or part.d or part.i or '').length
_getContentOfPart: (part) ->
part.u or part.d or part.i
part.u or part.d or part.i or ''