diff options
-rw-r--r-- | cui/source/options/personalization.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 58606a84c2b3..2e53087ece47 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -159,7 +159,8 @@ IMPL_LINK( SelectPersonaDialog, ActionOK, PushButton*, /* pButton */ ) IMPL_LINK( SelectPersonaDialog, ActionCancel, PushButton*, /* pButton */ ) { - m_rSearchThread->StopExecution(); + if( m_rSearchThread.is() ) + m_rSearchThread->StopExecution(); EndDialog( RET_CANCEL ); return 0; |