Commit 61d76272 authored by Jan Möbius's avatar Jan Möbius

Security check if infobar is initialized or null pointer.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8908 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6c86bea4
......@@ -524,7 +524,10 @@ bool InfoPlugin::getEdgeLengths(int _id, double &min, double &max, double &mean)
void InfoPlugin::slotObjectUpdated( int _identifier ){
if ( (PluginFunctions::objectCount() == 1) || (PluginFunctions::targetCount() == 1) ){
if ( !infoBar_ )
return;
bool found = false;
PluginFunctions::IteratorRestriction restriction;
......
......@@ -107,7 +107,7 @@ class InfoPlugin : public QObject, BaseInterface, MouseInterface, LoggingInterfa
public :
// default constructor
InfoPlugin(): info_(0) {};
InfoPlugin(): info_(0),infoBar_(0) {};
// default destructor
~InfoPlugin() {};
......
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