Permalink
Browse files

Update to make sure hostName exists before trying to act on it. Other…

…wise it will throw an error.
  • Loading branch information...
GCheung55 committed Jun 11, 2012
1 parent 03a82b3 commit 409405f67426ba6548ba167f42393392e0805787
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/_utils.js
View
@@ -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$")
}

0 comments on commit 409405f

Please sign in to comment.