Kaydet (Commit) 2844128a authored tarafından rbuj's avatar rbuj Kaydeden (comit) Noel Grandin

mediawiki: use String.length()==0 instead of String.equals(empty string)

Change-Id: I849da46aee801686cf6a581d65276ab60575c078
Reviewed-on: https://gerrit.libreoffice.org/11372Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst f1b8d883
......@@ -233,13 +233,13 @@ public class WikiEditSettingDialog extends WikiDialog
//the URL is valid
String sMainURL = Helper.GetMainURL( sWebPage, sURL );
if ( sMainURL.equals( "" ) )
if ( sMainURL.length() == 0 )
{
// TODO:
// it's not a Wiki Page, check first whether a redirect is requested
// happens usually in case of https
sRedirectURL = Helper.GetRedirectURL( sWebPage, sURL );
if ( sRedirectURL.equals( "" ) )
if ( sRedirectURL.length() == 0 )
{
// show error
Helper.ShowError( m_xContext,
......
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