diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx index 3be6e95a88bc..d496c6f6d8cf 100644 --- a/sc/source/ui/dbgui/validate.cxx +++ b/sc/source/ui/dbgui/validate.cxx @@ -846,7 +846,7 @@ IMPL_LINK_NOARG(ScTPValidationError, ClickSearchHdl, Button*, void) // choosing a script OUString aScriptURL = SfxApplication::ChooseScript(); - if ( aScriptURL != nullptr && !aScriptURL.isEmpty() ) + if ( !aScriptURL.isEmpty() ) { m_pEdtTitle->SetText( aScriptURL ); }