aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AisProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/AisProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AisProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/AisProtocolDecoder.java b/src/org/traccar/protocol/AisProtocolDecoder.java
index f04c558c2..1f7a12595 100644
--- a/src/org/traccar/protocol/AisProtocolDecoder.java
+++ b/src/org/traccar/protocol/AisProtocolDecoder.java
@@ -103,9 +103,9 @@ public class AisProtocolDecoder extends BaseProtocolDecoder {
Parser parser = new Parser(PATTERN, sentence);
if (parser.matches()) {
- int count = parser.nextInt();
- int index = parser.nextInt();
- int id = parser.nextInt();
+ int count = parser.nextInt(0);
+ int index = parser.nextInt(0);
+ int id = parser.nextInt(0);
Position position = null;