Commit ce448b3e authored by Bill King's avatar Bill King
Browse files

Fix possible null pointer dereference.

parent 8744dab3
......@@ -170,7 +170,7 @@ void PluginView::updateList()
m_items.append(defaultCollectionItem);
Qt::CheckState groupState = Qt::Unchecked;
int state = parsePluginSpecs(defaultCollectionItem, groupState, defaultCollection->plugins());
int state = parsePluginSpecs(defaultCollectionItem, groupState, defaultCollection ? defaultCollection->plugins() : QList<PluginSpec *>());
defaultCollectionItem->setIcon(0, iconForState(state));
defaultCollectionItem->setData(C_LOAD, Qt::CheckStateRole, QVariant(groupState));
......
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