Commit 0f2de843 authored by Antonio Rojas's avatar Antonio Rojas

Fix potential crash in sessionConfig

Add a null pointer check
parent f7cbddd5
......@@ -294,7 +294,7 @@ void Kiten::finishInit()
// the app group won't exist and we show demo
if ( _config->initialSearch() )
{
if ( ! KConfigGui::sessionConfig()->hasGroup( "app" ) )
if ( KConfigGui::hasSessionConfig() && ! KConfigGui::sessionConfig()->hasGroup( "app" ) )
{
searchTextAndRaise( QStringLiteral( "辞書" ) );
//Note to future tinkerers... DO NOT EDIT OR TRANSLATE THAT
......
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