diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-06 15:46:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-06 15:46:24 -0700 |
commit | 204b0a020a4bd2c3d17754ba183c39ea3035e0ae (patch) | |
tree | 80f97bad0f83597c4bc7d97c01acc73cd9021e47 | |
parent | 157094fef811f681f5fb87fa7fd9952ae2f4d8a4 (diff) | |
download | trackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.tar.gz trackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.tar.bz2 trackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.zip |
Handle null in post processor
-rw-r--r-- | src/main/java/org/traccar/handler/PostProcessHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/PostProcessHandler.java b/src/main/java/org/traccar/handler/PostProcessHandler.java index 2d6bc03ad..e1d833e46 100644 --- a/src/main/java/org/traccar/handler/PostProcessHandler.java +++ b/src/main/java/org/traccar/handler/PostProcessHandler.java @@ -47,7 +47,7 @@ public class PostProcessHandler extends BasePositionHandler { @Override public void handlePosition(Position position, Callback callback) { try { - if (PositionUtil.isLatest(cacheManager, position)) { + if (position != null && PositionUtil.isLatest(cacheManager, position)) { Device updatedDevice = new Device(); updatedDevice.setId(position.getDeviceId()); updatedDevice.setPositionId(position.getId()); |