diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-14 22:39:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-14 22:39:24 -0700 |
commit | f58b2d34556598ccd8504674241876bedd3aecf0 (patch) | |
tree | 74f0ef14157764eb24da4b813a68d099adda36c6 /src/main/java/org/traccar/protocol | |
parent | 75647118260d712c0d260050c548026b684b78c4 (diff) | |
download | trackermap-server-f58b2d34556598ccd8504674241876bedd3aecf0.tar.gz trackermap-server-f58b2d34556598ccd8504674241876bedd3aecf0.tar.bz2 trackermap-server-f58b2d34556598ccd8504674241876bedd3aecf0.zip |
Use correct next value
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/H02ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/H02ProtocolDecoder.java b/src/main/java/org/traccar/protocol/H02ProtocolDecoder.java index 3f8611b85..dd7141a2c 100644 --- a/src/main/java/org/traccar/protocol/H02ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/H02ProtocolDecoder.java @@ -387,7 +387,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { position.setNetwork(new Network(CellTower.fromLacCid(parser.nextHexInt(0), parser.nextHexInt(0)))); } - if (parser.hasNext(4)) { + if (parser.hasNext()) { String[] values = parser.next().split(","); for (int i = 0; i < values.length; i++) { position.set(Position.PREFIX_IO + (i + 1), values[i].trim()); |