rackspace/rackspace-ios — pull request #33 by gherlein (2012-11-11 00:27:05+00:00)
Title: fixed crash on null pointer when replacing apiKey token

in setupV2AuthForRequest account.apiKey is still null - the lack of checks, especially in the string replace funtions - caused a null pointer exception. This was only happening for me on the iPhone6. I suspect we have a race condition of some kind and that on slower hardware the account is getting fully populated before this is executed? Needs more investigation, but this defensive code was absolutely needed regardless.