pShell can be null here
...e.g., when opening "Tools - Options... - LibreOffice - Colors" from the Start Center. Change-Id: Id83591996e03794dc7dc53ccda58df7d7624ff8d
This commit is contained in:
@@ -194,8 +194,11 @@ void PaletteManager::SetPalette( sal_Int32 nPos )
|
||||
if(pColorList->Load())
|
||||
{
|
||||
SfxObjectShell* pShell = SfxObjectShell::Current();
|
||||
SvxColorListItem aColorItem(pColorList, SID_COLOR_TABLE);
|
||||
pShell->PutItem( aColorItem );
|
||||
if (pShell != nullptr)
|
||||
{
|
||||
SvxColorListItem aColorItem(pColorList, SID_COLOR_TABLE);
|
||||
pShell->PutItem( aColorItem );
|
||||
}
|
||||
}
|
||||
}
|
||||
std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create(m_context));
|
||||
|
Reference in New Issue
Block a user