aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-03-26 21:30:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-03-26 21:30:16 +1300
commit0728eec78c7c2826d78879481852688b6859fff6 (patch)
treef3a53e2dd366cd335db5c0ec4b368b3396870032 /src/org/traccar/protocol
parent31f12e5bcf409111b86e8fff571ee95c3186e241 (diff)
downloadtrackermap-server-0728eec78c7c2826d78879481852688b6859fff6.tar.gz
trackermap-server-0728eec78c7c2826d78879481852688b6859fff6.tar.bz2
trackermap-server-0728eec78c7c2826d78879481852688b6859fff6.zip
Check for null device id (fix #625)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/SyrusProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java
index e64544307..9b7a4d43f 100644
--- a/src/org/traccar/protocol/SyrusProtocolDecoder.java
+++ b/src/org/traccar/protocol/SyrusProtocolDecoder.java
@@ -118,6 +118,8 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder {
if (sendResponse && channel != null) {
channel.write(id);
}
+ } else {
+ return null;
}
// Parse message