THRIFT-2934: make node server options optional
Client: Nodejs
Patch: Randy Abernethy
diff --git a/lib/nodejs/lib/thrift/server.js b/lib/nodejs/lib/thrift/server.js
index 5453bc8..8715f2c 100644
--- a/lib/nodejs/lib/thrift/server.js
+++ b/lib/nodejs/lib/thrift/server.js
@@ -86,7 +86,7 @@
     });
   }
 
-  if (options.tls) {
+  if (options && options.tls) {
     return tls.createServer(options.tls, serverImpl);
   } else {
     return net.createServer(serverImpl);