mirror of https://github.com/M66B/FairEmail.git
Prevent empty file name
This commit is contained in:
parent
6a2477b94d
commit
c1078a91d8
|
@ -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 New Issue