fix nullpointer in ViewKeyFragment
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user