fix FavoritesActivity null pointer bug