1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-13 19:51:10 +01:00

Fix crash on printing strings

This commit is contained in:
世界 2021-03-22 12:09:13 +08:00
parent 0a96b0c061
commit 9f9bb21d62
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -5854,7 +5854,9 @@ public class MessagesController extends BaseController implements NotificationCe
arr = arr.stream().filter(it -> getMessagesController().blockePeers.indexOfKey(it.userId) == -1).collect(Collectors.toCollection(ArrayList::new));
}
if (lower_id > 0 || lower_id == 0 || arr.size() == 1) {
if (arr.isEmpty()) continue;
if (arr.size() == 1) {
PrintingUser pu = arr.get(0);
TLRPC.User user = getUser(pu.userId);
if (user == null) {