Prevent NPE
This commit is contained in:
parent
ed077f6bae
commit
39cbfa2c61
|
@ -135,7 +135,7 @@ public class OpmlImportFromPathActivity extends OpmlImportBaseActivity {
|
|||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (resultCode == RESULT_OK && requestCode == CHOOSE_OPML_FILE) {
|
||||
Uri uri = data.getData();
|
||||
if(uri.toString().startsWith("/")) {
|
||||
if(uri != null && uri.toString().startsWith("/")) {
|
||||
uri = Uri.parse("file://" + uri.toString());
|
||||
}
|
||||
importUri(uri);
|
||||
|
|
Loading…
Reference in New Issue