aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-01 11:14:03 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2018-07-01 11:14:13 -0700
commitb2a95573bd75e8fac4f44c7bfebf353df89976f3 (patch)
tree5bc4678aa786b42509cd5f2ca97bee5a0303d626 /src/org
parente849d3a56f55c83dc0ebed02165a124e30e22dbd (diff)
downloadtrackermap-server-b2a95573bd75e8fac4f44c7bfebf353df89976f3.tar.gz
trackermap-server-b2a95573bd75e8fac4f44c7bfebf353df89976f3.tar.bz2
trackermap-server-b2a95573bd75e8fac4f44c7bfebf353df89976f3.zip
Fix filter handling (fix #3958)
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/BaseDataHandler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/BaseDataHandler.java b/src/org/traccar/BaseDataHandler.java
index 8a461cc19..48794b0d7 100644
--- a/src/org/traccar/BaseDataHandler.java
+++ b/src/org/traccar/BaseDataHandler.java
@@ -24,7 +24,10 @@ public abstract class BaseDataHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
if (msg instanceof Position) {
- ctx.fireChannelRead(handlePosition((Position) msg));
+ Position position = handlePosition((Position) msg);
+ if (position != null) {
+ ctx.fireChannelRead(position);
+ }
} else {
super.channelRead(ctx, msg);
}