Skip to content

Commit 464828f

Browse files
author
John Xiao
committed
Check null before process file
1 parent 8414a14 commit 464828f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ module.exports = function (processors, options) {
1515

1616
stream._transform = function (file, encoding, cb) {
1717

18+
if (file.isNull()) {
19+
this.push(file);
20+
return cb();
21+
}
22+
1823
if (file.isStream()) {
1924
return handleError('Streams are not supported!')
2025
}

0 commit comments

Comments
 (0)