Skip to content
Snippets Groups Projects
Commit a0b73244 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix SEGV when plugins are not loaded properly.

parent 1d171a7a
No related branches found
No related tags found
No related merge requests found
......@@ -240,8 +240,10 @@ namespace gepetto {
version = "";
if (p.value ()->isLoaded ()) {
PluginInterface* pi = qobject_cast <PluginInterface*> (p.value()->instance());
name = pi->name();
// version = pi->version();
if (pi) {
name = pi->name();
// version = pi->version();
}
}
QIcon icon = pm_->icon (p.value());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment