Permalink
Browse files

Do not throw an exception when filtering on null

closes #410
  • Loading branch information...
1 parent 1f87d25 commit 8aaa25fc5ff694771c2a2631cf83d466a4a54c8b @1602 committed Jul 4, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/adapters/memory.js
View
@@ -187,6 +187,9 @@ function applyFilter(filter) {
if (typeof example === 'undefined') return undefined;
if (typeof value === 'undefined') return undefined;
if (typeof example === 'object') {
+ if (example === null) {
+ return value === null;
+ }
if (example.inq) {
if (!value) return false;
for (var i = 0; i < example.inq.length; i += 1) {

0 comments on commit 8aaa25f

Please sign in to comment.