diff --git a/build_num b/build_num index c3ccf9845..3d31b8a72 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 1567 +#define BUILD_NUM 1568 diff --git a/src/gui/ObjectManipulator.cpp b/src/gui/ObjectManipulator.cpp index 942d7e9bb..0b93e447a 100644 --- a/src/gui/ObjectManipulator.cpp +++ b/src/gui/ObjectManipulator.cpp @@ -1392,9 +1392,13 @@ void ObjectManipulator::contextMenuRequested(const QPoint &pos) if (Firewall::cast(currentObj)!=NULL) { - string transfer = Resources::os_res[currentObj->getStr("host_OS")]->getTransferAgent(); - if (!transfer.empty()) - popup->addAction( tr("Transfer"), this, SLOT(transferfw())); + Resources* os_res = Resources::os_res[currentObj->getStr("host_OS")]; + if (os_res) + { + string transfer = os_res->getTransferAgent(); + if (!transfer.empty()) + popup->addAction( tr("Transfer"), this, SLOT(transferfw())); + } } if (ObjectGroup::cast(currentObj)!=NULL && currentObj->getName()=="Firewalls") @@ -1406,8 +1410,12 @@ void ObjectManipulator::contextMenuRequested(const QPoint &pos) it!=currentObj->end(); ++it) { FWObject *fw = *it; - string transfer = Resources::os_res[fw->getStr("host_OS")]->getTransferAgent(); - have_transfer_support = have_transfer_support || (!transfer.empty()); + Resources* os_res = Resources::os_res[fw->getStr("host_OS")]; + if (os_res) + { + string transfer = os_res->getTransferAgent(); + have_transfer_support = have_transfer_support || (!transfer.empty()); + } } if (have_transfer_support) popup->addAction( tr("Transfer"), this, SLOT(transferfw()));