aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-30 17:55:43 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-30 17:55:43 -0700
commit771f334d686b252b3b6975beb758c3833e85f0f2 (patch)
tree1d5138928407dc6105c28bcff4c787adaff68461 /src/main/java
parentd7c1345f6f070e3931af0ad3fac785130cc9f4dc (diff)
downloadtrackermap-server-771f334d686b252b3b6975beb758c3833e85f0f2.tar.gz
trackermap-server-771f334d686b252b3b6975beb758c3833e85f0f2.tar.bz2
trackermap-server-771f334d686b252b3b6975beb758c3833e85f0f2.zip
Check for attribute
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/handler/CopyAttributesHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/CopyAttributesHandler.java b/src/main/java/org/traccar/handler/CopyAttributesHandler.java
index 405a52ecd..50d36471a 100644
--- a/src/main/java/org/traccar/handler/CopyAttributesHandler.java
+++ b/src/main/java/org/traccar/handler/CopyAttributesHandler.java
@@ -44,7 +44,7 @@ public class CopyAttributesHandler extends BaseDataHandler {
String attributesString = AttributeUtil.lookup(
cacheManager, Keys.PROCESSING_COPY_ATTRIBUTES, position.getDeviceId());
Position last = cacheManager.getPosition(position.getDeviceId());
- if (last != null) {
+ if (last != null && attributesString != null) {
for (String attribute : attributesString.split("[ ,]")) {
if (last.getAttributes().containsKey(attribute)
&& !position.getAttributes().containsKey(attribute)) {