summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kbfxlib/data/kbfxplasmapluginloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbfxlib/data/kbfxplasmapluginloader.cpp b/kbfxlib/data/kbfxplasmapluginloader.cpp
index ed2c458..0258ca7 100644
--- a/kbfxlib/data/kbfxplasmapluginloader.cpp
+++ b/kbfxlib/data/kbfxplasmapluginloader.cpp
@@ -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();