Fix wallpaper nullcheck

This commit is contained in:
Christian Pauly 2020-04-08 10:54:17 +02:00
parent d0280e1ea9
commit 357d9aef92
1 changed files with 1 additions and 0 deletions

View File

@ -368,6 +368,7 @@ class MatrixState extends State<Matrix> {
}
if (client.storeAPI != null) {
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
if (path == null) return;
final file = File(path);
if (await file.exists()) {
wallpaper = file;