Fix potential crash if no any plugins present

Thanks to Roman Savochenko for the patch!
pull/1/head
Slávek Banko 12 years ago
parent c7b1182591
commit 31eb731cab

@ -103,7 +103,7 @@ KbfxPlasmaPluginLoader::getView ( TQString name )
pluginMap().remove ( it );
}
init();
KbfxDataStack * stack = pluginMap() [name]->data();
KbfxDataStack * stack = pluginMap() [name] ? pluginMap() [name]->data() : NULL;
if (stack == 0 ) {
return new KbfxDataStack();

Loading…
Cancel
Save