firebase-ios-sdk: RTDB getData Crashes When Offline
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.5.1
- Firebase SDK version: 8.2.0
- Installation method: `CocoaPods
- Firebase Component: Database
[REQUIRED] Step 2: Describe the problem
Performing a getData call while not connected to the internet produces the following error: Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '-[FChildrenNode node]: unrecognized selector sent to instance
Steps to reproduce:
Make any getData call while not connected to the internet
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (17 by maintainers)
Commits related to this issue
- Fix getData crashing in offline Fixes #8357 The issue was that `node` property of `FCacheNode` pokes one level deeper: (FCacheNode.m:66) ``` - (id<FNode>)node { return self.indexedNode.n... — committed to hybridcattt/firebase-ios-sdk by hybridcattt 3 years ago
- Fix getData crashing in offline (#8484) Fixes #8357 The issue was that `node` property of `FCacheNode` pokes one level deeper: (FCacheNode.m:66) ``` - (id<FNode>)node { return self.index... — committed to firebase/firebase-ios-sdk by hybridcattt 3 years ago
@ChristianGoodridgeLVM I’d let @morganchen12 evaluate the correctness of the fix, but yes, from what I can tell it’s just a tiny programming error and not a logic error. So should work as expected still.
created a PR: #8484