From e1fa736d46266415b0adc6bac0d753d5295e9aff 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 0840c8ee9..e1121a844 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;