diff options
Diffstat (limited to 'mod/database-module.cxx')
-rw-r--r-- | mod/database-module.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/database-module.cxx b/mod/database-module.cxx index 4111156..629e393 100644 --- a/mod/database-module.cxx +++ b/mod/database-module.cxx @@ -104,8 +104,12 @@ namespace brep build_db_->query_one<build_tenant> (query::service.id == id && query::service.type == type)); - if (t != nullptr && t->service) + if (t != nullptr) { + // Shouldn't be here otherwise. + // + assert (t->service); + tenant_service& s (*t->service); if (optional<string> data = f (t->id, s)) |