mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 02:58:08 +00:00
Don't crash on packs missing metadata.
This commit is contained in:

committed by
Alan Evans

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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user