diff --git a/lib/_utils.js b/lib/_utils.js index d0feed9..69fc300 100644 --- a/lib/_utils.js +++ b/lib/_utils.js @@ -1,4 +1,4 @@ // Returns true if this is a host that closes *before* it ends?!?! module.exports.isAnEarlyCloseHost= function( hostName ) { - return hostName.match(".*google(apis)?.com$") + return hostName && hostName.match(".*google(apis)?.com$") } \ No newline at end of file