A nil check was added for retrieving a Core Data object when gs_data is unexpectedly nil, which is possible to happen if somehow the assignment is interrupted but the save goes through anyway, for example a due to a data race in client code. The nil check was confirmed to resolve (or work around) a specific client's data race, so it can be now safely extended to other callers of gs_data.
A nil check was added for retrieving a Core Data object when gs_data is unexpectedly nil, which is possible to happen if somehow the assignment is interrupted but the save goes through anyway, for example a due to a data race in client code. The nil check was confirmed to resolve (or work around) a specific client's data race, so it can be now safely extended to other callers of gs_data.