summaryrefslogtreecommitdiffstats
path: root/common/resourcecontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/resourcecontext.h')
-rw-r--r--common/resourcecontext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/resourcecontext.h b/common/resourcecontext.h
index 6058ac7..6ceba01 100644
--- a/common/resourcecontext.h
+++ b/common/resourcecontext.h
@@ -55,7 +55,9 @@ struct ResourceContext {
55 DomainTypeAdaptorFactoryInterface &adaptorFactory(const QByteArray &type) const 55 DomainTypeAdaptorFactoryInterface &adaptorFactory(const QByteArray &type) const
56 { 56 {
57 auto factory = adaptorFactories.value(type); 57 auto factory = adaptorFactories.value(type);
58 Q_ASSERT(factory); 58 if (!factory) {
59 qFatal("Failed to find a factory for %s", type.constData());
60 }
59 return *factory; 61 return *factory;
60 } 62 }
61 63