Fix potential crash if no any plugins present

Thanks to Roman Savochenko for the patch!
(cherry picked from commit 31eb731cab)
v3.5.13-sru
Slávek Banko 12 years ago
parent f4172e444a
commit 44d110ea84

@ -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