From def474c61190a6fa2b9ce42535c4456273199075 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 14 Feb 2014 12:26:34 +0100 Subject: [PATCH] Skip getting geometry type if request has no table --- lib/cartodb/server_options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index c667f1a5..cdd3bdc4 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -667,6 +667,7 @@ module.exports = function(){ function getGeometryType(err){ if (req.profiler) req.profiler.done('setDBConn'); if (err) throw err; + if ( ! req.params.table ) return null; cartoData.getTableGeometryType(req.params.dbname, req.params.table, this); }, function finishSetup(err, data){