aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 34a61da89..ea604f4ac 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -91,13 +91,11 @@ public class OwnTracksProtocolDecoder extends BaseProtocolDecoder {
position.setTime(new Date(root.getJsonNumber("tst").longValue() * 1000));
- boolean haveTopic = root.containsKey("topic");
- boolean haveTid = root.containsKey("tid");
String uniqueId;
- if (haveTopic) {
+ if (root.containsKey("topic")) {
uniqueId = root.getString("topic");
- if (haveTid) {
+ if (root.containsKey("tid")) {
position.set("tid", root.getString("tid"));
}
} else {