Closed ahmedgomaa27 closed 1 year ago
Passing nil to a function doesn't cause that error. I think orig
may be nil or corrupted instead
@NSExceptional when i run XCode debugging , i found that error = nil
Yes but that won't cause a crash, error is supposed to be nil unless there is an error
I've seen this one. The completion is optional so orig
can (validly) be nil. We should just guard against trying to call it when that is the case.
@NSExceptional @ryanolsonk I updated the code now please check
Looks good to me, @NSExceptional ?
Thanks!!
@NSExceptional will be a new version for this fix? as i need to upgrade current version
the crash happened after I used FLEX and Firestore in my app, the root cause for it is trying to set error in Orig block and the error value is nil so we need to check on it first