Skip to content

Commit 7fe47c2

Browse files
committed
Fix null cache result
1 parent 99a9edd commit 7fe47c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Client.prototype.getCacheResult = function(url, data) {
336336
}
337337

338338
var result;
339-
if (typeof response.$data === 'object') {
339+
if (response.$data !== null && typeof response.$data === 'object') {
340340
result = Client.createResource(url, response, self);
341341
} else {
342342
result = response.$data;

0 commit comments

Comments
 (0)