Skip to content

Commit

Permalink
fix(cloud_firestore, ios): fix queryGet() & namedQueryGet(). Chec…
Browse files Browse the repository at this point in the history
…k if `query` is `[NSNull null]` value (#9410)

* fix(firestore, ios): fix queryGet() unhandled null response

* chore(firestore): remove unnecessary null check from named query
  • Loading branch information
russellwheatley committed Sep 12, 2022
1 parent a645100 commit ae035fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -113,7 +113,6 @@
80F1DA47CF78E61FED2F1DC2 /* Pods-Runner.release.xcconfig */,
82EEF9818494FDE3E5DA52EA /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -374,7 +373,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = XKYFCK6ZHP;
DEVELOPMENT_TEAM = YYX2P3XVJ7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -503,7 +502,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = XKYFCK6ZHP;
DEVELOPMENT_TEAM = YYX2P3XVJ7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -526,7 +525,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = XKYFCK6ZHP;
DEVELOPMENT_TEAM = YYX2P3XVJ7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
Expand Up @@ -451,8 +451,8 @@ - (void)documentGet:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallRes

- (void)queryGet:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallResult *)result {
FIRQuery *query = arguments[@"query"];

if (query == nil) {
// Why we check [NSNull null]: https://github.com/firebase/flutterfire/issues/9328
if (query == nil || query == [NSNull null]) {
result.error(@"sdk-error",
@"An error occurred while parsing query arguments, see native logs for more "
@"information. Please report this issue.",
Expand Down

0 comments on commit ae035fe

Please sign in to comment.