mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent empty file name
This commit is contained in:
parent
6a2477b94d
commit
c1078a91d8
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
if (TextUtils.isEmpty(fname))
|
||||
fname = uri.getLastPathSegment();
|
||||
|
||||
if (TextUtils.isEmpty(fname))
|
||||
return uri;
|
||||
|
||||
File dir = new File(getCacheDir(), "shared");
|
||||
if (!dir.exists())
|
||||
dir.mkdir();
|
||||
|
|
Loading…
Reference in a new issue