diff --git a/lib/less/index.js b/lib/less/index.js index 368f7d56..1d31fea6 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -19,7 +19,7 @@ var less = { if (callback) { parser.parse(input, function (e, root) { - callback(e, root.toCSS(options)); + callback(e, root && root.toCSS && root.toCSS(options)); }); } else { ee = new(require('events').EventEmitter);