diff --git a/gretl/src/main/java/ch/so/agi/gretl/tasks/Publisher.java b/gretl/src/main/java/ch/so/agi/gretl/tasks/Publisher.java index f093b0c1..a669b746 100644 --- a/gretl/src/main/java/ch/so/agi/gretl/tasks/Publisher.java +++ b/gretl/src/main/java/ch/so/agi/gretl/tasks/Publisher.java @@ -183,14 +183,12 @@ public void publishAll() { settings.setValue(ch.interlis.ili2c.gui.UserSettings.HTTP_PROXY_PORT, proxyPort.toString()); } SimiSvcApi simiSvc=null; - if(kgdiService!=null) { + if(kgdiService!=null) { if (!kgdiService.getUrl().isEmpty() && !kgdiService.getUser().isEmpty() && !kgdiService.getPassword().isEmpty()) { - if (kgdiService.getUrl().trim().length()!=0 && kgdiService.getUser().trim().length()!=0 && kgdiService.getPassword().trim().length()!=0) { - simiSvc=new SimiSvcClient(); - simiSvc.setup(kgdiService.getUrl(), kgdiService.getUser(), kgdiService.getPassword()); - if(kgdiTokenService!=null) { - simiSvc.setupTokenService(kgdiTokenService.getUrl(), kgdiTokenService.getUser(), kgdiTokenService.getPassword()); - } + simiSvc=new SimiSvcClient(); + simiSvc.setup(kgdiService.getUrl(), kgdiService.getUser(), kgdiService.getPassword()); + if(kgdiTokenService!=null) { + simiSvc.setupTokenService(kgdiTokenService.getUrl(), kgdiTokenService.getUser(), kgdiTokenService.getPassword()); } } }