aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AplicomFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AplicomFrameDecoder.java b/src/org/traccar/protocol/AplicomFrameDecoder.java
index e12848f8f..24d55f1cf 100644
--- a/src/org/traccar/protocol/AplicomFrameDecoder.java
+++ b/src/org/traccar/protocol/AplicomFrameDecoder.java
@@ -27,7 +27,7 @@ public class AplicomFrameDecoder extends FrameDecoder {
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buf) throws Exception {
// Skip Alive message
- while (buf.readableBytes() > 0 && Character.isDigit(buf.getByte(buf.readerIndex()))) {
+ while (buf.readable() && Character.isDigit(buf.getByte(buf.readerIndex()))) {
buf.readByte();
}