aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorEdward Valley <ed.valley@yandex.com>2023-07-09 17:07:35 -0400
committerEdward Valley <ed.valley@yandex.com>2023-07-09 17:07:35 -0400
commit779486a30483f7ab9c2c0f4c39c6a4e14319b330 (patch)
treef4dad959a724cf6d1f2dec44231d133fd78b412d /src/main/java
parent7ade92a97f41951aecfbb9de720780cf5232e2c1 (diff)
downloadtrackermap-server-779486a30483f7ab9c2c0f4c39c6a4e14319b330.tar.gz
trackermap-server-779486a30483f7ab9c2c0f4c39c6a4e14319b330.tar.bz2
trackermap-server-779486a30483f7ab9c2c0f4c39c6a4e14319b330.zip
Fix more errors
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
index f0753cb5c..de039a2fd 100644
--- a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
@@ -231,6 +231,9 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder {
if (device != null) {
deviceModel = device.getModel();
}
+ if (deviceModel == null) {
+ deviceModel = "";
+ }
Position position = new Position(getProtocolName());
@@ -261,6 +264,8 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder {
if ("AVL110".equals(deviceModel) || "AVL120".equals(deviceModel)) {
position.set(Position.PREFIX_ADC + 2, parser.nextDouble() * 0.001);
+ } else {
+ parser.next();
}
Integer lac = parser.nextHexInt();