aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-03-28 09:54:04 -0700
committerAnton Tananaev <anton@traccar.org>2022-03-28 09:54:21 -0700
commit4350c1634b7cfd1e8005908b8c72ec32a882276f (patch)
treec48ddc5e9223f061431e03bf91007568d304deb1 /src/main
parent80dd9eebab6cb90761d325852536395879d9412f (diff)
downloadtrackermap-server-4350c1634b7cfd1e8005908b8c72ec32a882276f.tar.gz
trackermap-server-4350c1634b7cfd1e8005908b8c72ec32a882276f.tar.bz2
trackermap-server-4350c1634b7cfd1e8005908b8c72ec32a882276f.zip
Handle invalid operator
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 89ae48b3a..f83a49941 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -362,7 +362,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
if (cid != 0 && lac != 0) {
CellTower cellTower = CellTower.fromLacCid(lac, cid);
long operator = position.getInteger(Position.KEY_OPERATOR);
- if (operator != 0) {
+ if (operator >= 1000) {
cellTower.setOperator(operator);
}
position.setNetwork(new Network(cellTower));