Fix NPE (Cheogram)

This commit is contained in:
Arne 2023-05-25 10:22:16 +02:00
parent bd3f9388f0
commit 9e73098635

View file

@ -84,7 +84,7 @@ public class WebxdcPage implements ConversationPage {
File f = xmppConnectionService.getFileForCid(cid);
try {
if (f != null) zip = new ZipFile(xmppConnectionService.getFileForCid(cid));
final ZipEntry manifestEntry = zip.getEntry("manifest.toml");
final ZipEntry manifestEntry = zip == null ? null : zip.getEntry("manifest.toml");
if (manifestEntry != null) {
manifest = Toml.parse(zip.getInputStream(manifestEntry));
}