Commit 56e1036b authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Extra sanity check.

parent 9e0c46ad
......@@ -113,7 +113,9 @@ QList<T*> createPlugins( PluginManagerPrivate* d, const QMap<QPluginLoader*, T*>
typename QMap<QPluginLoader*, T*>::const_iterator i = loaders.constBegin();
typename QMap<QPluginLoader*, T*>::const_iterator const end = loaders.constEnd();
for (; i != end; ++i) {
result.append( (*i)->newInstance() );
T* instance = (*i)->newInstance();
Q_ASSERT( instance && "Plugin returned null when requesting a new instance." );
result.append( instance );
return result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment