Skip to content

Commit

Permalink
fix for very rare null pointer exception if picking the library retur…
Browse files Browse the repository at this point in the history
…ns an intent with no null data
  • Loading branch information
cgogolin committed Jan 4, 2018
1 parent b033867 commit 1ee2413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/cgogolin/library/Library.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ee2413

Please sign in to comment.