Mix black beans, corn, tomatoes, cilantro, red onion, jalapeno (optional), lime juice, salt, and black pepper in a bowl; fold avocado into the mixture. Cover bowl with plastic wrap, chill at least 2 hours.