Skip to content
Snippets Groups Projects
Commit c926ce60 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4044 don't send error notification when port not set

parent 80eef6b4
Branches
Tags
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
package de.ozgcloud.formcycle; package de.ozgcloud.formcycle;
import static java.util.Objects.*; import static java.util.Objects.*;
import static org.apache.commons.lang3.StringUtils.*;
import java.util.Properties; import java.util.Properties;
...@@ -56,6 +57,9 @@ public class PluginPropertiesMapper { ...@@ -56,6 +57,9 @@ public class PluginPropertiesMapper {
Integer getPort(Properties pluginProperties) { Integer getPort(Properties pluginProperties) {
var portProperty = pluginProperties.getProperty(ProxyConfig.KEY_PROXY_PORT); var portProperty = pluginProperties.getProperty(ProxyConfig.KEY_PROXY_PORT);
if (isBlank(portProperty)) {
return null;
}
var port = Utils.parsePort(portProperty); var port = Utils.parsePort(portProperty);
if (isNull(port)) { if (isNull(port)) {
userErrorDispatcher.sendWrongProxyPortFormatMessage(); userErrorDispatcher.sendWrongProxyPortFormatMessage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment