diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-30 13:12:37 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-30 13:12:37 -0700 |
commit | ce661ec77a957b70c15509c6801e6f34b32ad11d (patch) | |
tree | 1fd501abc09e1eeceb3bf411b5d2612b27cc35ad /src/main/java/org/traccar/WebDataHandler.java | |
parent | 154ff3b2175e67b3fac531cb9c5c5c68880f5e12 (diff) | |
download | trackermap-server-ce661ec77a957b70c15509c6801e6f34b32ad11d.tar.gz trackermap-server-ce661ec77a957b70c15509c6801e6f34b32ad11d.tar.bz2 trackermap-server-ce661ec77a957b70c15509c6801e6f34b32ad11d.zip |
Improve dependency injection
Diffstat (limited to 'src/main/java/org/traccar/WebDataHandler.java')
-rw-r--r-- | src/main/java/org/traccar/WebDataHandler.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/WebDataHandler.java b/src/main/java/org/traccar/WebDataHandler.java index 678096d34..2c0aa0f8e 100644 --- a/src/main/java/org/traccar/WebDataHandler.java +++ b/src/main/java/org/traccar/WebDataHandler.java @@ -287,8 +287,10 @@ public class WebDataHandler extends BaseDataHandler { @Override protected Position handlePosition(Position position) { - AsyncRequestAndCallback request = new AsyncRequestAndCallback(position); - request.send(); + if (url != null) { + AsyncRequestAndCallback request = new AsyncRequestAndCallback(position); + request.send(); + } return position; } |