Skip to content

Commit c1fdb0e

Browse files
committed
Sanity check for existence of object before assigning a key
1 parent 0af62be commit c1fdb0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/dump.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
};
306306
}
307307
ttl = parseInt(ttls[i], 10);
308-
if (!isNaN(ttl) && ttl !== -1) {
308+
if (!isNaN(ttl) && ttl !== -1 && json[key]) {
309309
json[key].ttl = ttl;
310310
}
311311
}

0 commit comments

Comments
 (0)