diff --git a/third-party/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity.java b/third-party/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity.java index a58dbcfe8..e87c8d340 100755 --- a/third-party/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity.java +++ b/third-party/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FileChooserActivity.java @@ -1041,7 +1041,12 @@ public class FileChooserActivity extends Activity { return; } - IFile dir = mFileProvider.fromPath(String + final IFileProvider fileProvider = mFileProvider; + if (fileProvider == null) { + return; + } + + IFile dir = fileProvider.fromPath(String .format("%s/%s", getLocation().getAbsolutePath(), name)); if (dir.mkdir()) { Dlg.toast(FileChooserActivity.this, getString(R.string.afc_msg_done), Dlg._LengthShort);