Closed piotr-sekara closed 6 years ago
The PR looks good, but let me see if this is a bug in the sandbox first. I don't think the SMS number should actually ever be null...
I was wrong. There are instances where the smsNumber
can be null. Thanks for the fix!
Fixed a bug that caused a problem with loading the current ride because of null value for a driver sms number that we've received from API in Sandbox. Before that fix, when ride was in "accepted" state, we've received a json from API where sms number was null, so we were getting nil ride when calling "fetchCurrentRide" function because UberRides was decoding this json, and trying to get value for non optional String.