aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 23:21:09 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 23:21:09 +1300
commitaac29a8a4452b4977779e2ceb7285c17c6369691 (patch)
treea9e9461273a7f2ae93e85affdce1e7cf3f289c6d /src/org/traccar
parent82965326887d0867f8edf29e638630c2ee85423c (diff)
downloadtraccar-server-aac29a8a4452b4977779e2ceb7285c17c6369691.tar.gz
traccar-server-aac29a8a4452b4977779e2ceb7285c17c6369691.tar.bz2
traccar-server-aac29a8a4452b4977779e2ceb7285c17c6369691.zip
Add TLT-2H unit test
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Tlt2hProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
index 60f624dd6..531ae28b6 100644
--- a/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
@@ -60,7 +60,7 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder {
// Get device identifier
String imei = sentence.substring(1, sentence.indexOf('#', 1));
- long deviceId = 0;
+ long deviceId;
try {
deviceId = getDataManager().getDeviceByImei(imei).getId();
} catch(Exception error) {