diff --git a/app/src/main/java/io/github/chronosx88/influence/logic/StartChatLogic.java b/app/src/main/java/io/github/chronosx88/influence/logic/StartChatLogic.java index 3d5b1c0..48fb445 100644 --- a/app/src/main/java/io/github/chronosx88/influence/logic/StartChatLogic.java +++ b/app/src/main/java/io/github/chronosx88/influence/logic/StartChatLogic.java @@ -76,7 +76,7 @@ public class StartChatLogic implements StartChatLogicContract { private PublicUserProfile getPublicProfile(String peerID) { PublicUserProfile publicProfile = null; FutureGet futureGetProfile = peerDHT.get(Number160.createHash(peerID + "_profile")).start().awaitUninterruptibly(); - if (futureGetProfile.isSuccess()) { + if (!futureGetProfile.isEmpty()) { String jsonString = null; try { jsonString = (String) futureGetProfile.data().object();