mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-22 07:12:19 +00:00
Fixed crash when public profile doesn't exist
This commit is contained in:
parent
8592cdc11a
commit
e6f68720e8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user