mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 05:38:33 +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;
|
||||
|
||||
public SignalServiceStickerManifest(String title, String author, StickerInfo cover, List<StickerInfo> stickers) {
|
||||
this.title = Optional.of(title);
|
||||
this.author = Optional.of(author);
|
||||
this.cover = Optional.of(cover);
|
||||
this.title = Optional.fromNullable(title);
|
||||
this.author = Optional.fromNullable(author);
|
||||
this.cover = Optional.fromNullable(cover);
|
||||
this.stickers = (stickers == null) ? Collections.<StickerInfo>emptyList() : new ArrayList<>(stickers);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user