mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-17 21:02:17 -05:00
fix nullpointer in ViewKeyFragment
This commit is contained in:
parent
7d371d8a39
commit
3755bce9ce
@ -300,7 +300,7 @@ public class ViewKeyFragment extends LoaderFragment implements
|
||||
* because the notification triggers faster than the activity closes.
|
||||
*/
|
||||
// Avoid NullPointerExceptions...
|
||||
if (data.getCount() == 0) {
|
||||
if (data == null || data.getCount() == 0) {
|
||||
return;
|
||||
}
|
||||
// Swap the new cursor in. (The framework will take care of closing the
|
||||
|
Loading…
Reference in New Issue
Block a user