aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-06 15:46:24 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-06 15:46:24 -0700
commit204b0a020a4bd2c3d17754ba183c39ea3035e0ae (patch)
tree80f97bad0f83597c4bc7d97c01acc73cd9021e47 /src/main
parent157094fef811f681f5fb87fa7fd9952ae2f4d8a4 (diff)
downloadtrackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.tar.gz
trackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.tar.bz2
trackermap-server-204b0a020a4bd2c3d17754ba183c39ea3035e0ae.zip
Handle null in post processor
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/handler/PostProcessHandler.java2
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());