From e51b73fe2dbdf25f9ba69ed2200c976f9bbcb05c Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Thu, 9 Jan 2025 16:43:10 +0000 Subject: [PATCH] comm/iridium/RockBlockIridiumMessenger: Fix to not send IMEI if is trimmed empty. --- .../pt/lsts/neptus/comm/iridium/RockBlockIridiumMessenger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/pt/lsts/neptus/comm/iridium/RockBlockIridiumMessenger.java b/src/java/pt/lsts/neptus/comm/iridium/RockBlockIridiumMessenger.java index 4ac4a4433a..7971cb5457 100644 --- a/src/java/pt/lsts/neptus/comm/iridium/RockBlockIridiumMessenger.java +++ b/src/java/pt/lsts/neptus/comm/iridium/RockBlockIridiumMessenger.java @@ -232,7 +232,7 @@ public void sendMessage(IridiumMessage msg) throws Exception { @Override public void sendMessageRaw(String destinationName, String imeiAddr, byte[] data) throws Exception { - if (imeiAddr == null || imeiAddr.isEmpty()) { + if (imeiAddr == null || imeiAddr.trim().isEmpty()) { VehicleType vt = VehiclesHolder.getVehicleById(destinationName); if (vt == null) { throw new Exception("Cannot send message to an unknown destination");