Avoid a null pointer dereference
Do not use deco pointer until we are sure it is not null. REVIEW: 102057
This commit is contained in:
parent
664aaa1b60
commit
16bcfb0114
1 changed files with 1 additions and 1 deletions
|
@ -115,11 +115,11 @@ bool KDecorationPreview::recreateDecoration()
|
|||
{
|
||||
delete deco;
|
||||
deco = m_plugin->createDecoration(bridge);
|
||||
deco->init();
|
||||
|
||||
if (!deco)
|
||||
return false;
|
||||
|
||||
deco->init();
|
||||
positionPreviews();
|
||||
deco->widget()->show();
|
||||
|
||||
|
|
Loading…
Reference in a new issue