mapbox/mapbox-ios-sdk — pull request #461 by maciekish (2014-06-30 14:16:51+00:00)
Title: Check annotation for nil before adding to array (prevents a crash)

If we set constraints for the map using setConstraintsSouthWest, enable showsUserLocation and then launch the app outside of the constraints it will crash while trying to add a nil annotation.

Besides it's always a good idea to check for nil when adding something to an array/dictionary.