From f5180f61d55330a5e3b68229c1c80e6918aba609 Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:37:49 +0300 Subject: [PATCH] fixed empty text from ssfs --- app/src/main/java/ru/vtosters/hooks/ssfs/ProfileHook.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/ru/vtosters/hooks/ssfs/ProfileHook.java b/app/src/main/java/ru/vtosters/hooks/ssfs/ProfileHook.java index 4838eb8d0..28296945c 100644 --- a/app/src/main/java/ru/vtosters/hooks/ssfs/ProfileHook.java +++ b/app/src/main/java/ru/vtosters/hooks/ssfs/ProfileHook.java @@ -24,7 +24,10 @@ public static void fetchInfo(ExtendedUserProfile extendedUserProfile, JSONObject if (UsersList.hasDescription(userID)) { try { - extendedUserProfile.z2 = Handler.getDescription(userID); + String description = Handler.getDescription(userID); + if (!TextUtils.isEmpty(description)) { + extendedUserProfile.z2 = description; + } } catch (NullPointerException e) { Log.e(TAG, "null \"profiles\" node\n" + e); }