aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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));
}