mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 09:18:49 +00:00
Don't crash on packs missing metadata.
This commit is contained in:
parent
b598431237
commit
3fbf21a34e
@ -14,9 +14,9 @@ public class SignalServiceStickerManifest {
|
|||||||
private final List<StickerInfo> stickers;
|
private final List<StickerInfo> stickers;
|
||||||
|
|
||||||
public SignalServiceStickerManifest(String title, String author, StickerInfo cover, List<StickerInfo> stickers) {
|
public SignalServiceStickerManifest(String title, String author, StickerInfo cover, List<StickerInfo> stickers) {
|
||||||
this.title = Optional.of(title);
|
this.title = Optional.fromNullable(title);
|
||||||
this.author = Optional.of(author);
|
this.author = Optional.fromNullable(author);
|
||||||
this.cover = Optional.of(cover);
|
this.cover = Optional.fromNullable(cover);
|
||||||
this.stickers = (stickers == null) ? Collections.<StickerInfo>emptyList() : new ArrayList<>(stickers);
|
this.stickers = (stickers == null) ? Collections.<StickerInfo>emptyList() : new ArrayList<>(stickers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user