diff --git a/lib/twitter.js b/lib/twitter.js index 1dbf3e27..909dc575 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -116,7 +116,7 @@ Twitter.prototype.__request = function(method, path, params, callback) { } // Set API base - if (typeof params.base !== 'undefined') { + if (params && typeof params.base !== 'undefined') { base = params.base; delete params.base; }