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