aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-19 11:08:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-19 11:08:23 +1200
commit25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64 (patch)
treec3bfef973d51b255055f5ccc99d6c0cd8b0b4789 /src/org/traccar/protocol
parente6e6afd89be2f64488e61cd4c1391c898e8f6cc3 (diff)
downloadtrackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.tar.gz
trackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.tar.bz2
trackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.zip
Fix a bug in GL200 decoder (fix #1410)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gl200ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
index 38b1df1a6..23afa2c4c 100644
--- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
@@ -140,7 +140,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder {
// Altitude
String altitude = parser.group(index++);
- if (speed != null) {
+ if (altitude != null) {
position.setAltitude(Double.valueOf(altitude));
}