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){