Skip to content

Commit

Permalink
comm/iridium/RockBlockIridiumMessenger: Fix to not send IMEI if is tr…
Browse files Browse the repository at this point in the history
…immed empty.
  • Loading branch information
paulosousadias committed Jan 9, 2025
1 parent 02ed996 commit e51b73f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e51b73f

Please sign in to comment.