You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The interface of SPTPersistentCacheResponse tells the compiler that all its properties are NONNULL but it's obvious that it's not true, you cannot have result and error instantiated at the same time.
This is a big issue in Swift3 projects, because if you check directly the presence of record without checking result before, the app will crash at runtime, because the compiler cannot let you use optional access to these properties.
The interface of
SPTPersistentCacheResponse
tells the compiler that all its properties are NONNULL but it's obvious that it's not true, you cannot haveresult
anderror
instantiated at the same time.This is a big issue in Swift3 projects, because if you check directly the presence of
record
without checkingresult
before, the app will crash at runtime, because the compiler cannot let you use optional access to these properties.A corrected version of it could be
The text was updated successfully, but these errors were encountered: