aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 4671a1088..89af20b22 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -347,10 +347,10 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
if (position.hasAttribute(mncKey) && position.hasAttribute(lacKey) && position.hasAttribute(cidKey)) {
CellTower cellTower = CellTower.from(
getConfig().getInteger(Keys.GEOLOCATION_MCC),
- (Integer) position.getAttributes().remove(mncKey),
- (Integer) position.getAttributes().remove(lacKey),
- (Integer) position.getAttributes().remove(cidKey));
- cellTower.setSignalStrength((Integer) position.getAttributes().remove(rssiKey));
+ ((Number) position.getAttributes().remove(mncKey)).intValue(),
+ ((Number) position.getAttributes().remove(lacKey)).intValue(),
+ ((Number) position.getAttributes().remove(cidKey)).longValue());
+ cellTower.setSignalStrength(((Number) position.getAttributes().remove(rssiKey)).intValue());
network.addCellTower(cellTower);
}
}