fix NPE
This commit is contained in:
parent
28197cc7c0
commit
7a35fb0ee8
@ -183,7 +183,9 @@ public class Message implements BotApiObject {
|
||||
}
|
||||
|
||||
public List<MessageEntity> getEntities() {
|
||||
entities.forEach(x -> x.computeText(text));
|
||||
if (entities != null) {
|
||||
entities.forEach(x -> x.computeText(text));
|
||||
}
|
||||
return entities;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user