Merge pull request #221 from azhohov/dev

fix NPE
This commit is contained in:
Ruben Bermudez 2017-05-29 00:29:08 +02:00 committed by GitHub
commit 96760f48c1

View File

@ -192,7 +192,9 @@ public class Message implements BotApiObject {
} }
public List<MessageEntity> getEntities() { public List<MessageEntity> getEntities() {
entities.forEach(x -> x.computeText(text)); if (entities != null) {
entities.forEach(x -> x.computeText(text));
}
return entities; return entities;
} }