fix undefined method for nil:NilClass
Merge pull request #363 from Zipfer/develop

fix swift undefined method for nil:NilClass