diff --git a/app/src/main/java/uk/openvk/android/legacy/api/models/Group.java b/app/src/main/java/uk/openvk/android/legacy/api/models/Group.java index 2fced550c..af7bce708 100644 --- a/app/src/main/java/uk/openvk/android/legacy/api/models/Group.java +++ b/app/src/main/java/uk/openvk/android/legacy/api/models/Group.java @@ -198,7 +198,11 @@ public void parseMembers(String response, DownloadManager downloadManager, boole JSONObject user = members.getJSONObject(i); member.first_name = user.getString("name").split(" ")[0]; if(user.getString("name").split(" ").length > 1) { - member.last_name = user.getString("name").split(" ")[1]; + if(user.getString("name").split(" ")[1] != null) { + member.last_name = user.getString("name").split(" ")[1]; + } else { + member.last_name = ""; + } } member.id = user.getLong("id"); member.avatar_url = user.getString("photo_100");