diff --git a/src/com/em/miguelbridge/Launcher.java b/src/com/em/miguelbridge/Launcher.java index 74ec5a7..9550eb6 100644 --- a/src/com/em/miguelbridge/Launcher.java +++ b/src/com/em/miguelbridge/Launcher.java @@ -73,7 +73,9 @@ public class Launcher { lastMessageId = getLastMessageId(matrixRoomId); newMessaggio = (String[]) matrixBot.getLastMessage(matrixRoomId); - if (!newMessaggio[0].equals(matrixBot.readBotUserName()) && !newMessaggio[2].equals(lastMessageId)) { + if (!newMessaggio[0].equals(matrixBot.readBotUserName()) && + !newMessaggio[2].equals(lastMessageId) && + !newMessaggio[1].equals("") && newMessaggio[1] != null) { String tgroomid = (String) room.get("tgid"); tgBot.cEcho(tgroomid, newMessaggio[0] + ":\n" + newMessaggio[1]); }