Merge pull request #1769 from 007durgesh219/Issue#1766
Fix NullPointerException in ImportKeysListFragment.checkAndRequestReadPermission, #1766
This commit is contained in:
@@ -335,7 +335,7 @@ public class ImportKeysListFragment extends ListFragment implements
|
|||||||
if (mLoaderState instanceof BytesLoaderState) {
|
if (mLoaderState instanceof BytesLoaderState) {
|
||||||
BytesLoaderState ls = (BytesLoaderState) mLoaderState;
|
BytesLoaderState ls = (BytesLoaderState) mLoaderState;
|
||||||
|
|
||||||
if ( ! checkAndRequestReadPermission(ls.mDataUri)) {
|
if ( ls.mDataUri != null && ! checkAndRequestReadPermission(ls.mDataUri)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user