Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit e71a5a4

Browse files
2 parents 866912a + 1492d2c commit e71a5a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/operators/source/gdal_source.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ void injectParameters(std::string &file, const QueryRectangle &qrect, const Quer
307307
boost::replace_all(file, "%%%T1%%%", std::to_string(qrect.t1));
308308
boost::replace_all(file, "%%%T2%%%", std::to_string(qrect.t2));
309309

310+
// in the case that there is no user session, stop getting the user. TODO: re-engineer so that there is always a session
311+
if (!tools.session) {
312+
return;
313+
}
314+
310315
UserDB::User &user = tools.session->getUser();
311316
for (auto& key : Configuration::getVector<std::string>("gdal_source.injectable_user_artifacts")) {
312317
size_t split = key.find(':');

0 commit comments

Comments
 (0)