mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
fixed possible NPE
This commit is contained in:
parent
507adc7943
commit
1e5bd5bddd
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue