Skip getting geometry type if request has no table

This commit is contained in:
Sandro Santilli 2014-02-14 12:26:34 +01:00
parent c1b2d16119
commit def474c611

View File

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