fix nullpointer in ViewKeyFragment

This commit is contained in:
Vincent Breitmoser 2015-06-16 15:41:23 +02:00
parent 7d371d8a39
commit 3755bce9ce

View File

@ -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