mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -05:00
Fix possible nullpointer in ImportKeysFileFragment
This commit is contained in:
parent
db7da6525e
commit
fc4cdaa24b
@ -104,7 +104,7 @@ public class ImportKeysFileFragment extends Fragment {
|
|||||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
switch (requestCode) {
|
switch (requestCode) {
|
||||||
case REQUEST_CODE_FILE: {
|
case REQUEST_CODE_FILE: {
|
||||||
if (resultCode == Activity.RESULT_OK && data != null) {
|
if (resultCode == Activity.RESULT_OK && data != null && data.getData() != null) {
|
||||||
|
|
||||||
// load data
|
// load data
|
||||||
mImportActivity.loadCallback(new ImportKeysListFragment.BytesLoaderState(null, data.getData()));
|
mImportActivity.loadCallback(new ImportKeysListFragment.BytesLoaderState(null, data.getData()));
|
||||||
|
Loading…
Reference in New Issue
Block a user