Skip to content

Commit

Permalink
Fix crashing in reader #61
Browse files Browse the repository at this point in the history
  • Loading branch information
qfox committed Apr 20, 2016
1 parent 0fa90c3 commit 0e997cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/polyjuice/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function (dictionary, truth_fn, truth_tbl, current) {
this.get = function (key, value) {
var read = that.dictionary[key]

if (!read) {
if (!read || value === null || value === 'undefined') {
return {}
}

Expand Down

0 comments on commit 0e997cf

Please sign in to comment.