aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/EventForwarder.java
diff options
context:
space:
mode:
authorSrk <watertext@hotmail.it>2017-11-23 18:38:33 +0100
committerSrk <watertext@hotmail.it>2017-11-23 18:38:33 +0100
commit00c5cef324ed644ca5cae282864f3bca9629467a (patch)
treeae6672b3467194ff244d4b4d57c6673ffbeee05e /src/org/traccar/notification/EventForwarder.java
parent82da12c1218ca7f1e4e1562cc183cc8a059045e6 (diff)
downloadtrackermap-server-00c5cef324ed644ca5cae282864f3bca9629467a.tar.gz
trackermap-server-00c5cef324ed644ca5cae282864f3bca9629467a.tar.bz2
trackermap-server-00c5cef324ed644ca5cae282864f3bca9629467a.zip
Minor refactoring
Diffstat (limited to 'src/org/traccar/notification/EventForwarder.java')
-rw-r--r--src/org/traccar/notification/EventForwarder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/notification/EventForwarder.java b/src/org/traccar/notification/EventForwarder.java
index 1354901a7..68c3ea221 100644
--- a/src/org/traccar/notification/EventForwarder.java
+++ b/src/org/traccar/notification/EventForwarder.java
@@ -20,7 +20,6 @@ import com.ning.http.client.AsyncHttpClient.BoundRequestBuilder;
import java.util.Arrays;
import java.util.List;
-import org.apache.commons.lang3.StringUtils;
import org.traccar.Context;
import org.traccar.helper.Log;
import org.traccar.model.Device;
@@ -55,7 +54,7 @@ public abstract class EventForwarder {
requestBuilder.addHeader("Content-Type", getContentType());
- if (StringUtils.isNotEmpty(header)) {
+ if (header != null && !header.isEmpty()) {
FluentCaseInsensitiveStringsMap params = new FluentCaseInsensitiveStringsMap();
params.putAll(splitIntoKeyValues(header, ":"));
requestBuilder.setHeaders(params);