aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SabertekFrameDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-05 11:14:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-08-05 11:14:25 +1200
commitfce9c91c820d8a01f9fdbe8cb5fa2a0f5a9c764c (patch)
tree108b6c514d7ecd3045e6dd13db0fbc26af94132e /src/org/traccar/protocol/SabertekFrameDecoder.java
parent495714f9322db11971d0349bc9c2b4a5ce7348e9 (diff)
downloadtrackermap-server-fce9c91c820d8a01f9fdbe8cb5fa2a0f5a9c764c.tar.gz
trackermap-server-fce9c91c820d8a01f9fdbe8cb5fa2a0f5a9c764c.tar.bz2
trackermap-server-fce9c91c820d8a01f9fdbe8cb5fa2a0f5a9c764c.zip
Update Java dependencies and fix issues
Diffstat (limited to 'src/org/traccar/protocol/SabertekFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/SabertekFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/SabertekFrameDecoder.java b/src/org/traccar/protocol/SabertekFrameDecoder.java
index 771ef9cfb..ad5000bf8 100644
--- a/src/org/traccar/protocol/SabertekFrameDecoder.java
+++ b/src/org/traccar/protocol/SabertekFrameDecoder.java
@@ -29,7 +29,7 @@ public class SabertekFrameDecoder extends BaseFrameDecoder {
int beginIndex = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) 0x02);
if (beginIndex >= 0) {
int endIndex = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) 0x03);
- if (beginIndex >= 0) {
+ if (endIndex >= 0) {
buf.readerIndex(beginIndex + 1);
ByteBuf frame = buf.readRetainedSlice(endIndex - beginIndex - 1);
buf.readerIndex(endIndex + 1);