fix possible exception

This commit is contained in:
Dave Horton
2022-02-19 09:57:51 -05:00
parent c16a2662f2
commit 47478fd409

View File

@@ -105,7 +105,7 @@ module.exports = function(srf, logger) {
} }
else { else {
const uri = parseUri(req.uri); const uri = parseUri(req.uri);
const arr = /context-(.*)/.exec(uri.user); const arr = /context-(.*)/.exec(uri?.user);
if (arr) { if (arr) {
// this is a transfer from another feature server // this is a transfer from another feature server
const {retrieveKey, deleteKey} = srf.locals.dbHelpers; const {retrieveKey, deleteKey} = srf.locals.dbHelpers;