aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java b/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java
index 3db11113d..473e8b2c7 100644
--- a/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java
+++ b/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java
@@ -59,7 +59,8 @@ public class ArnaviFrameDecoder extends BaseFrameDecoder {
length = 4;
} else {
int index = 2;
- while (index + PACKET_WRAPPER_LENGTH < buf.readableBytes() && buf.getByte(index) != PACKAGE_END_SIGN) {
+ while (index + PACKET_WRAPPER_LENGTH < buf.readableBytes()
+ && buf.getByte(index) != PACKAGE_END_SIGN) {
index += PACKET_WRAPPER_LENGTH + buf.getUnsignedShortLE(index + 1);
}
if (buf.getByte(index) != PACKAGE_END_SIGN) {