From 61895194b298f40172bd5a5332df283e7774ccdc Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 15 Jul 2023 10:58:11 +0200 Subject: [PATCH] refactor(neon_files): Adjust Signed-off-by: jld3103 --- packages/neon/neon_files/lib/blocs/files.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/neon/neon_files/lib/blocs/files.dart b/packages/neon/neon_files/lib/blocs/files.dart index 19ba057fc9c..cac6161523d 100644 --- a/packages/neon/neon_files/lib/blocs/files.dart +++ b/packages/neon/neon_files/lib/blocs/files.dart @@ -96,7 +96,7 @@ class FilesBloc extends InteractiveBloc implements FilesBlocEvents, FilesBlocSta () async { final file = File( p.join( - await _platform.getApplicationCachePath(), + await _platform.getApplicationCachePath() ?? '', 'files', etag.replaceAll('"', ''), path.last, @@ -149,7 +149,7 @@ class FilesBloc extends InteractiveBloc implements FilesBlocEvents, FilesBlocSta () async { final file = File( p.join( - await _platform.getUserAccessibleAppDataPath(), + await _platform.getUserAccessibleAppDataPath() ?? '', account.humanReadableID, 'files', path.join(Platform.pathSeparator),