We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f69f80f commit 8e9ad83Copy full SHA for 8e9ad83
src/seeder.js
@@ -96,7 +96,8 @@ function fileExists(fileName) {
96
*/
97
function unmarshalBuffer(json) {
98
_.forEach(json, function(value, key) {
99
- if (value.type==="Buffer") {
+ // Null check to prevent creation of Buffer when value is null
100
+ if (value !== null && value.type==="Buffer") {
101
json[key]= new Buffer(value.data);
102
}
103
});
0 commit comments