diff --git a/plugins/transforms/rest/src/main/java/org/apache/hop/pipeline/transforms/rest/Rest.java b/plugins/transforms/rest/src/main/java/org/apache/hop/pipeline/transforms/rest/Rest.java index 2defb9728d..6cd55b273a 100644 --- a/plugins/transforms/rest/src/main/java/org/apache/hop/pipeline/transforms/rest/Rest.java +++ b/plugins/transforms/rest/src/main/java/org/apache/hop/pipeline/transforms/rest/Rest.java @@ -427,7 +427,7 @@ public boolean processRow() throws HopException { } } else { // Static URL - if (!meta.getConnectionName().isEmpty()) { + if (!Utils.isEmpty(meta.getConnectionName())) { data.realUrl = baseUrl + resolve(meta.getUrl()); } else { data.realUrl = resolve(meta.getUrl()); @@ -447,7 +447,7 @@ public boolean processRow() throws HopException { } } // set Headers - if (!meta.getHeaderFields().isEmpty()) { + if (!Utils.isEmpty(meta.getHeaderFields())) { data.nrheader = meta.getHeaderFields().size(); data.indexOfHeaderFields = new int[meta.getHeaderFields().size()]; data.headerNames = new String[meta.getHeaderFields().size()];