Commit 21cf52ae authored by Robert Loehning's avatar Robert Loehning Committed by Jarek Kobus
Browse files

Avoid NULL-pointer deref



Change-Id: I49115befb18c5342b96c5561882dcdfa45772f22
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@nokia.com>
parent 12a99d47
...@@ -286,9 +286,10 @@ void CodeStyleSelectorWidget::slotCopyClicked() ...@@ -286,9 +286,10 @@ void CodeStyleSelectorWidget::slotCopyClicked()
if (!ok) if (!ok)
return; return;
ICodeStylePreferences *copy = codeStylePool->cloneCodeStyle(currentPreferences); ICodeStylePreferences *copy = codeStylePool->cloneCodeStyle(currentPreferences);
copy->setDisplayName(newName); if (copy) {
if (copy) copy->setDisplayName(newName);
m_codeStyle->setCurrentDelegate(copy); m_codeStyle->setCurrentDelegate(copy);
}
} }
void CodeStyleSelectorWidget::slotEditClicked() void CodeStyleSelectorWidget::slotEditClicked()
......
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