diff --git a/lib/util/utils.js b/lib/util/utils.js index 9a0a35228..b071b35e8 100644 --- a/lib/util/utils.js +++ b/lib/util/utils.js @@ -126,7 +126,7 @@ function equalsPartial(object, expected) { } function getObjectProperty(object, key, defaultValue) { - return object.hasOwnProperty(key) ? object[key] : defaultValue; + return object && object.hasOwnProperty(key) ? object[key] : defaultValue; } function getResponse(request, data, error) {