fixed GUI crash that happened when user created a cluster from two firewalls and was in the state when no rule was selected in the policy currently opened in the panel on the right

This commit is contained in:
Vadim Kurland
2010-11-11 17:18:22 -08:00
parent d782d648ec
commit 61d7b7c805
+5 -1
View File
@@ -2369,7 +2369,11 @@ void RuleSetView::saveCurrentRowColumn(SelectionMemento &memento)
if (node && node->rule)
{
memento.column = index.column();
memento.rule_id = node->rule->getId();
FWObject *rule = node->rule;
if (rule)
memento.rule_id = node->rule->getId();
else
memento.rule_id = -1;
return;
}
}