From 357d9aef92780282ff6cb3c7e16e34627608d954 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 8 Apr 2020 10:54:17 +0200 Subject: [PATCH] Fix wallpaper nullcheck --- lib/components/matrix.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/matrix.dart b/lib/components/matrix.dart index 0840c8e..e1121a8 100644 --- a/lib/components/matrix.dart +++ b/lib/components/matrix.dart @@ -368,6 +368,7 @@ class MatrixState extends State { } 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;