mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2026-09-30 00:02:39 +00:00
Fixed NPE from DocumentFileManager.isSticker. #30.
This commit is contained in:
1 parent
114a20a71c
commit
a8325735a3
1 file changed
+1
+1
@@ -60,6 +60,7 @@ public class DocumentFileManager extends AbstractMediaFileManager {
|
|||||||
|
|
||||||
public boolean isSticker() {
|
public boolean isSticker() {
|
||||||
TLDocumentAttributeSticker sticker = null;
|
TLDocumentAttributeSticker sticker = null;
|
||||||
|
if (this.isEmpty || doc==null) return false;
|
||||||
if (doc.getAttributes() != null) for(TLAbsDocumentAttribute attr : doc.getAttributes()) {
|
if (doc.getAttributes() != null) for(TLAbsDocumentAttribute attr : doc.getAttributes()) {
|
||||||
if (attr instanceof TLDocumentAttributeSticker) {
|
if (attr instanceof TLDocumentAttributeSticker) {
|
||||||
sticker = (TLDocumentAttributeSticker)attr;
|
sticker = (TLDocumentAttributeSticker)attr;
|
||||||
|
|||||||
Reference in new issue
Block a user