diff --git a/src/com/cgogolin/library/Library.java b/src/com/cgogolin/library/Library.java index f08f95e..5739c68 100644 --- a/src/com/cgogolin/library/Library.java +++ b/src/com/cgogolin/library/Library.java @@ -856,7 +856,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent intent) case LIBRARY_FILE_PICK_REQUEST: if(resultCode == Activity.RESULT_OK) { - if (intent != null) { + if (intent != null && intent.getData() != null) { if(setLibraryPathDialog!=null) { setLibraryPathDialog.dismiss();