mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-18 05:12:16 -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.
|
* because the notification triggers faster than the activity closes.
|
||||||
*/
|
*/
|
||||||
// Avoid NullPointerExceptions...
|
// Avoid NullPointerExceptions...
|
||||||
if (data.getCount() == 0) {
|
if (data == null || data.getCount() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Swap the new cursor in. (The framework will take care of closing the
|
// Swap the new cursor in. (The framework will take care of closing the
|
||||||
|
Loading…
Reference in New Issue
Block a user